Update wifi-bt.sh

This commit is contained in:
FURK4NGG
2026-01-16 20:50:24 +03:00
committed by GitHub
parent df66b7eba0
commit 6c2a6527cf
+4
View File
@@ -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
;; ;;