base-files: don't enter failsafe if triggered by switch
[openwrt/staging/yousong.git] / package / base-files / files / etc / rc.button / failsafe
index b372c04c4e700297b12d613c8abefffcc13414f0..bfad810428952a5431b58562cc4b22c78c8cae81 100755 (executable)
@@ -1,2 +1,3 @@
 #!/bin/sh
-echo ${BUTTON} > /tmp/failsafe_button
+
+[ "${TYPE}" = "switch" ] || echo ${BUTTON} > /tmp/failsafe_button