scripts: correct formatting for toggle-wifi

This commit is contained in:
Andrew Scott 2024-10-06 00:47:03 -04:00
parent b699d1577a
commit 990a1bfc2d
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
if [ $(connmanctl state | awk '/State/ {print $NF}') == 'online' ]; then if [ "$(connmanctl state | awk '/State/ {print $NF}')" = 'online' ]; then
connmanctl disable wifi connmanctl disable wifi
else else
connmanctl enable wifi connmanctl enable wifi