mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-14 16:20:52 -05:00
8 lines
144 B
Bash
8 lines
144 B
Bash
#!/bin/sh
|
|
|
|
if [ $(connmanctl state | awk '/State/ {print $NF}') == 'online' ]; then
|
|
connmanctl disable wifi
|
|
else
|
|
connmanctl enable wifi
|
|
fi
|
|
|