diff options
author | Luka Perkov <luka@openwrt.org> | 2013-11-11 23:34:11 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2013-11-11 23:34:11 +0000 |
commit | a2f5118bb7db4ccac39f962aef6a16066ecda76e (patch) | |
tree | 8bbb8d5c495dc9923346a0ead4ce02ca3e411718 /package/base-files/files/etc/rc.button/failsafe | |
parent | 92de1b3c5677b0ea732cdede05e8756c633147ac (diff) | |
download | master-187ad058-a2f5118bb7db4ccac39f962aef6a16066ecda76e.tar.gz master-187ad058-a2f5118bb7db4ccac39f962aef6a16066ecda76e.tar.bz2 master-187ad058-a2f5118bb7db4ccac39f962aef6a16066ecda76e.zip |
[package] 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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38770 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/rc.button/failsafe')
-rwxr-xr-x | package/base-files/files/etc/rc.button/failsafe | 3 |
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 |