diff options
author | Phil Sutter <phil@nwl.cc> | 2014-06-17 03:07:47 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-18 09:10:35 +0200 |
commit | e2a2f45d450df44836e7d144f18e3f1db1c14371 (patch) | |
tree | d00c1c4632f5894f57e6b931327c4cb5133d5fd6 /package/base-files | |
parent | c3b1bef39937848630bb0b364eb6b4ef25ffed5b (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/Makefile | 2 | ||||
-rwxr-xr-x | package/base-files/src/etc/network/if-pre-up.d/04-wireless | 2 |
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 |