aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/rc.button
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-11-11 23:34:11 +0000
committerLuka Perkov <luka@openwrt.org>2013-11-11 23:34:11 +0000
commit1df0179b2834ab284dba93e9f45b2f4796e995ad (patch)
tree5ee46cc86685f35bdf935ad75e86e8c92a3275b1 /package/base-files/files/etc/rc.button
parent32cbc948a1789db1e638e95b4e979be1c947573d (diff)
downloadupstream-1df0179b2834ab284dba93e9f45b2f4796e995ad.tar.gz
upstream-1df0179b2834ab284dba93e9f45b2f4796e995ad.tar.bz2
upstream-1df0179b2834ab284dba93e9f45b2f4796e995ad.zip
base-files: don't enter failsafe if triggered by switch
Fixes failsafe issues with switches after r38725. Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38770
Diffstat (limited to 'package/base-files/files/etc/rc.button')
-rwxr-xr-xpackage/base-files/files/etc/rc.button/failsafe3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/etc/rc.button/failsafe b/package/base-files/files/etc/rc.button/failsafe
index b372c04c4e..bfad810428 100755
--- a/package/base-files/files/etc/rc.button/failsafe
+++ b/package/base-files/files/etc/rc.button/failsafe
@@ -1,2 +1,3 @@
#!/bin/sh
-echo ${BUTTON} > /tmp/failsafe_button
+
+[ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button