2022-05-22 15:32:36 -04:00
|
|
|
#!/usr/bin/bash
|
|
|
|
ETH="$(cat /sys/class/net/enp0s31f6/operstate)"
|
|
|
|
WAN="$(cat /sys/class/net/wlan0/operstate)"
|
|
|
|
if [[ "$ETH" == "up" ]]; then
|
|
|
|
#echo ""
|
2023-06-14 12:49:43 -04:00
|
|
|
echo ""
|
2022-05-22 15:32:36 -04:00
|
|
|
exit
|
|
|
|
elif [[ "$WAN" == "up" ]]; then
|
|
|
|
echo ""
|
|
|
|
else
|
|
|
|
#echo ""
|
|
|
|
#echo "睊"
|
2023-06-14 12:49:43 -04:00
|
|
|
echo ""
|
2022-05-22 15:32:36 -04:00
|
|
|
fi
|