3 [ "${ACTION}" = "released" ] || exit 0
7 logger "$BUTTON pressed for $SEEN seconds"
12 uci set wireless.$1.disabled=$rfkill_state
17 config_get disabled $1 disabled
18 [ "$disabled" = "1" ] || rfkill_state=1
25 echo "REBOOT" > /dev/console
28 elif [ "$SEEN" -gt 5 ]
30 echo "FACTORY RESET" > /dev/console
36 for dir in /var/run/hostapd-*; do
37 [ -d "$dir" ] || continue
38 hostapd_cli -p "$dir" wps_pbc
44 config_foreach wifi_rfkill_check wifi-device
45 config_foreach wifi_rfkill_set wifi-device
51 logger "unknown button ${BUTTON}"