mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
buttons: make all button handler scripts return 0
this is required by the new button timeout feature Signed-off-by: John Crispin <blogic@openwrt.org> Backport of r46471 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46581 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d0bb5b2d0c
commit
dd91e3763a
@ -1,3 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button
|
||||
|
||||
return 0
|
||||
|
||||
@ -16,3 +16,5 @@ then
|
||||
echo "FACTORY RESET" > /dev/console
|
||||
jffs2reset -y && reboot &
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
@ -28,3 +28,5 @@ esac
|
||||
config_foreach wifi_rfkill_set wifi-device
|
||||
uci commit wireless
|
||||
wifi up
|
||||
|
||||
return 0
|
||||
|
||||
@ -7,3 +7,5 @@ if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
|
||||
hostapd_cli -i "$socket" wps_pbc
|
||||
done
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user