mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-09 14:00:47 -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
|
|
|