From a2f5118bb7db4ccac39f962aef6a16066ecda76e Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Mon, 11 Nov 2013 23:34:11 +0000 Subject: [package] base-files: don't enter failsafe if triggered by switch Fixes failsafe issues with switches after r38725. Signed-off-by: Luka Perkov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38770 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/Makefile | 2 +- package/base-files/files/etc/rc.button/failsafe | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'package/base-files') diff --git a/package/base-files/Makefile b/package/base-files/Makefile index f0b2e37d5b..31c6e984bc 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/version.mk PKG_NAME:=base-files -PKG_RELEASE:=147 +PKG_RELEASE:=148 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_BUILD_DEPENDS:=opkg/host 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 -- cgit v1.2.3