From f812e99657ffa7d58f22f54ccb59fa3af9ebb078 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 24 Jul 2015 09:11:35 +0000 Subject: buttons: make all button handler scripts return 0 this is required by the new button timeout feature Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46471 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/rc.button/failsafe | 2 ++ package/base-files/files/etc/rc.button/reset | 2 ++ package/base-files/files/etc/rc.button/rfkill | 2 ++ 3 files changed, 6 insertions(+) (limited to 'package/base-files') 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 -- cgit v1.2.3