dotfiles/eww/scripts/lan.sh
2022-05-22 15:32:36 -04:00

14 lines
259 B
Bash
Executable file

#!/usr/bin/bash
ETH="$(cat /sys/class/net/enp0s31f6/operstate)"
WAN="$(cat /sys/class/net/wlan0/operstate)"
if [[ "$ETH" == "up" ]]; then
#echo ""
echo ""
exit
elif [[ "$WAN" == "up" ]]; then
echo ""
else
#echo ""
#echo "睊"
echo ""
fi