buttons: make all button handler scripts return 0
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 24 Jul 2015 09:11:35 +0000 (09:11 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 24 Jul 2015 09:11:35 +0000 (09:11 +0000)
this is required by the new button timeout feature

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46471 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/etc/rc.button/failsafe
package/base-files/files/etc/rc.button/reset
package/base-files/files/etc/rc.button/rfkill
package/network/services/hostapd/files/wps-hotplug.sh

index bfad810..ba958fa 100755 (executable)
@@ -1,3 +1,5 @@
 #!/bin/sh
 
 [ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button
+
+return 0
index 229b503..3e24146 100755 (executable)
@@ -16,3 +16,5 @@ then
        echo "FACTORY RESET" > /dev/console
        jffs2reset -y && reboot &
 fi
+
+return 0
index e8d5a9c..9e2c12f 100755 (executable)
@@ -28,3 +28,5 @@ esac
 config_foreach wifi_rfkill_set wifi-device
 uci commit wireless
 wifi up
+
+return 0
index 5b3c753..24af80e 100644 (file)
@@ -7,3 +7,5 @@ if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
                hostapd_cli -i "$socket" wps_pbc
        done
 fi
+
+return 0