diff options
author | John Crispin <john@openwrt.org> | 2015-07-24 09:11:35 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-24 09:11:35 +0000 |
commit | e7b34b2b0dee0deef4d31c9d78f0fd06f56fe439 (patch) | |
tree | 20c80dbcb6a3a94e7746d0ee66335c4b4605abaa /package/base-files/files/etc | |
parent | 6edf2f62c89a8a3960d41104223d7c728a210fdd (diff) | |
download | mtk-20170518-e7b34b2b0dee0deef4d31c9d78f0fd06f56fe439.zip mtk-20170518-e7b34b2b0dee0deef4d31c9d78f0fd06f56fe439.tar.gz mtk-20170518-e7b34b2b0dee0deef4d31c9d78f0fd06f56fe439.tar.bz2 |
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
Diffstat (limited to 'package/base-files/files/etc')
-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 bfad810..ba958fa 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 229b503..3e24146 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 e8d5a9c..9e2c12f 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 |