Update wifi-bt.sh
This commit is contained in:
@@ -7,10 +7,12 @@ case "$1" in
|
|||||||
if [ "$WIFI_STATUS" = "enabled" ]; then
|
if [ "$WIFI_STATUS" = "enabled" ]; then
|
||||||
nmcli radio wifi off
|
nmcli radio wifi off
|
||||||
pkill nm-applet
|
pkill nm-applet
|
||||||
|
echo "Wifi Disabled"
|
||||||
else
|
else
|
||||||
nmcli radio wifi on
|
nmcli radio wifi on
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
nm-applet &
|
nm-applet &
|
||||||
|
echo "Wifi Enabled"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@@ -19,8 +21,10 @@ case "$1" in
|
|||||||
|
|
||||||
if [ "$BT_STATUS" = "yes" ]; then
|
if [ "$BT_STATUS" = "yes" ]; then
|
||||||
bluetoothctl power off
|
bluetoothctl power off
|
||||||
|
echo "Bluetooth Disabled"
|
||||||
else
|
else
|
||||||
bluetoothctl power on
|
bluetoothctl power on
|
||||||
|
echo "Bluetooth Enabled"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user