Fix showing ssid after kernel upgrade.
This commit is contained in:
parent
b4d17a825e
commit
79fe75d0a4
@ -5,6 +5,6 @@ case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) printf "$icon <span background='#770000'>no wifi</span>" ;;
|
||||
up)
|
||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
||||
&& printf "$icon $(iw dev wlan0 info | grep 'ssid ' | cut -d' ' -f2-)" \
|
||||
&& printf "$icon $(iwgetid -r)" \
|
||||
|| printf "$icon <span background='#770000'>no ip</span>"
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user