Fix showing ssid after kernel upgrade.
This commit is contained in:
parent
b4d17a825e
commit
79fe75d0a4
1 changed files with 1 additions and 1 deletions
|
@ -5,6 +5,6 @@ case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||||
down) printf "$icon <span background='#770000'>no wifi</span>" ;;
|
down) printf "$icon <span background='#770000'>no wifi</span>" ;;
|
||||||
up)
|
up)
|
||||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
[ -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>"
|
|| printf "$icon <span background='#770000'>no ip</span>"
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue