1 2 3 4 5 6 7 8 9 10
#!/bin/sh case "$(cat /sys/class/net/wlp0s20f3/operstate)" in up) echo " " ;; down) echo " " ;; esac # # #