From 242a145bdbcb6e6d647c14dd51fce2802284e617 Mon Sep 17 00:00:00 2001 From: nagumii Date: Tue, 4 Mar 2025 12:44:48 +0200 Subject: [PATCH] Fix wifi toggle on button press --- .../usr/local/bin/femto-network-config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-network-config.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-network-config.sh index f1e5abb..5a11622 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-network-config.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-network-config.sh @@ -55,10 +55,10 @@ while getopts ":hx:Ts:p:c:eiwn:tr" opt; do T) # Option -T (toggle wifi state) if [ "$(cat /etc/wifi_state.txt)" == "up" ]; then logger "Toggling wifi off" - femto-network-config.sh -x "up" + femto-network-config.sh -x "down" else logger "Toggling wifi on" - femto-network-config.sh -x "down" + femto-network-config.sh -x "up" fi ;; s) # Option -s (ssid)