buttons: make all button handler scripts return 0
authorJohn Crispin <john@openwrt.org>
Fri, 24 Jul 2015 09:11:35 +0000 (09:11 +0000)
committerJohn Crispin <john@openwrt.org>
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>
SVN-Revision: 46471

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 bfad810428952a5431b58562cc4b22c78c8cae81..ba958fa885e0eb3f53498f0f9d90a8fbd7469c70 100755 (executable)
@@ -1,3 +1,5 @@
 #!/bin/sh
 
 [ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button
+
+return 0
index 229b503a691be1ba8dcc258ebe19d3164ed3a092..3e241460efbb08abaa775c1a7843b5fa3e237d44 100755 (executable)
@@ -16,3 +16,5 @@ then
        echo "FACTORY RESET" > /dev/console
        jffs2reset -y && reboot &
 fi
+
+return 0
index e8d5a9c8cb851f9ebadb5a4503fae28c2acc4c26..9e2c12f8c34211f8cbda2f0cb95b41d954e36a4f 100755 (executable)
@@ -28,3 +28,5 @@ esac
 config_foreach wifi_rfkill_set wifi-device
 uci commit wireless
 wifi up
+
+return 0
index 5b3c7534272f1c5745268d3d5486f7fa9938e428..24af80e55bec2915fc038c99354a4aa8170b0799 100644 (file)
@@ -7,3 +7,5 @@ if [ "$ACTION" = "pressed" -a "$BUTTON" = "wps" ]; then
                hostapd_cli -i "$socket" wps_pbc
        done
 fi
+
+return 0