diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-08-10 23:58:15 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-08-10 23:58:15 +0000 |
commit | dd91e3763a0413beffa226f36b278ca61e0a95c2 (patch) | |
tree | 94c172c25733feec4434e6c52bdc816de304771d /package/base-files | |
parent | d0bb5b2d0cb152ecdd58c547cf087552e69b2474 (diff) | |
download | upstream-dd91e3763a0413beffa226f36b278ca61e0a95c2.tar.gz upstream-dd91e3763a0413beffa226f36b278ca61e0a95c2.tar.bz2 upstream-dd91e3763a0413beffa226f36b278ca61e0a95c2.zip |
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
Diffstat (limited to 'package/base-files')
-rwxr-xr-x | package/base-files/files/etc/rc.button/failsafe | 2 | ||||
-rwxr-xr-x | package/base-files/files/etc/rc.button/reset | 2 | ||||
-rwxr-xr-x | package/base-files/files/etc/rc.button/rfkill | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/files/etc/rc.button/failsafe b/package/base-files/files/etc/rc.button/failsafe index bfad810428..ba958fa885 100755 --- a/package/base-files/files/etc/rc.button/failsafe +++ b/package/base-files/files/etc/rc.button/failsafe @@ -1,3 +1,5 @@ #!/bin/sh [ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button + +return 0 diff --git a/package/base-files/files/etc/rc.button/reset b/package/base-files/files/etc/rc.button/reset index 229b503a69..3e241460ef 100755 --- a/package/base-files/files/etc/rc.button/reset +++ b/package/base-files/files/etc/rc.button/reset @@ -16,3 +16,5 @@ then echo "FACTORY RESET" > /dev/console jffs2reset -y && reboot & fi + +return 0 diff --git a/package/base-files/files/etc/rc.button/rfkill b/package/base-files/files/etc/rc.button/rfkill index e8d5a9c8cb..9e2c12f8c3 100755 --- a/package/base-files/files/etc/rc.button/rfkill +++ b/package/base-files/files/etc/rc.button/rfkill @@ -28,3 +28,5 @@ esac config_foreach wifi_rfkill_set wifi-device uci commit wireless wifi up + +return 0 |