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> SVN-Revision: 46471
This commit is contained in:
parent
6edf2f62c8
commit
e7b34b2b0d
4 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button
|
[ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
|
@ -16,3 +16,5 @@ then
|
||||||
echo "FACTORY RESET" > /dev/console
|
echo "FACTORY RESET" > /dev/console
|
||||||
jffs2reset -y && reboot &
|
jffs2reset -y && reboot &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
|
@ -28,3 +28,5 @@ esac
|
||||||
config_foreach wifi_rfkill_set wifi-device
|
config_foreach wifi_rfkill_set wifi-device
|
||||||
uci commit wireless
|
uci commit wireless
|
||||||
wifi up
|
wifi up
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
|
@ -7,3 +7,5 @@ if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
|
||||||
hostapd_cli -i "$socket" wps_pbc
|
hostapd_cli -i "$socket" wps_pbc
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue