mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-08 13:30:47 -05:00
scripts: correct formatting for toggle-wifi
This commit is contained in:
parent
b699d1577a
commit
990a1bfc2d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue