[FS#499] WiFi client mode leaves router inaccessible if upstream network goes down

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Mon Sep 14 04:06:12 EDT 2020


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#499 - WiFi client mode leaves router inaccessible if upstream network goes down
User who did this - Georgi Valkov (httpstorm)

----------
I know loosing access to your router can be quite frustrating.
My solution: did you know that the buttons on your router trigger a script where you can take any actions? You can also query how long a button has been held and trigger a different action. Example:

# /etc/rc.button/{rfkill,wps}

if [ "$SEEN" -lt 1 ]
then
	# toggle: gPhone7
	case "$(uci get wireless.radio0_gPhone.disabled)" in
		1)
			echo "gPhone.enabled" > /dev/console
			logger "gPhone.enabled"
			uci set wireless.radio0.noscan=0
			uci set wireless.radio0_gPhone.disabled=0
			uci commit
			wifi
		;;
		*)
			echo "gPhone.disabled" > /dev/console
			logger "gPhone.disabled"
			uci set wireless.radio0.noscan=1
			uci set wireless.radio0_gPhone.disabled=1
			uci commit
			wifi

			/etc/init.d/network restart
			/etc/init.d/openvpn restart
		;;
	esac

elif [ "$SEEN" -lt 3 ]
then
	# less than 3 seconds
fi
----------

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=499#comment8787

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list