mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-13 15:50:50 -05:00
10 lines
173 B
Text
10 lines
173 B
Text
|
#!/bin/sh
|
||
|
## A simple script to turn wifi on/off
|
||
|
|
||
|
if [ $(nmcli radio wifi | awk '/led/ {print}') = 'enabled' ] ; then
|
||
|
nmcli radio wifi off
|
||
|
else
|
||
|
nmcli radio wifi on
|
||
|
fi
|
||
|
|