summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2014-06-17 03:07:47 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-18 09:10:35 +0200
commite2a2f45d450df44836e7d144f18e3f1db1c14371 (patch)
treed00c1c4632f5894f57e6b931327c4cb5133d5fd6 /package/base-files
parentc3b1bef39937848630bb0b364eb6b4ef25ffed5b (diff)
package/base-files: tolerate systems without rfkill application
Without this, ifup will fail for wireless interfaces. Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/Makefile2
-rwxr-xr-xpackage/base-files/src/etc/network/if-pre-up.d/04-wireless2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index ef9bdafd4..394071d40 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
PKG_NAME:= base-files
PKG_VERSION:= 1.0
-PKG_RELEASE:= 98
+PKG_RELEASE:= 99
PKG_SECTION:= base/apps
PKG_DESCR:= basic files and scripts
diff --git a/package/base-files/src/etc/network/if-pre-up.d/04-wireless b/package/base-files/src/etc/network/if-pre-up.d/04-wireless
index 98ac932df..746c166e3 100755
--- a/package/base-files/src/etc/network/if-pre-up.d/04-wireless
+++ b/package/base-files/src/etc/network/if-pre-up.d/04-wireless
@@ -7,7 +7,7 @@ set -e
[ "$IF_WIRELESS_HWMODE" ] || IF_WIRELESS_HWMODE=g
[ "$IF_WIRELESS_EXTENSION" ] || IF_WIRELESS_EXTENSION=0
-rfkill unblock wlan 2>/dev/null
+[ -x /usr/sbin/rfkill ] && rfkill unblock wlan 2>/dev/null
wpa=0
wpa1=0