summaryrefslogtreecommitdiff
path: root/wlan-ng/files/pre-up
diff options
context:
space:
mode:
Diffstat (limited to 'wlan-ng/files/pre-up')
-rw-r--r--wlan-ng/files/pre-up9
1 files changed, 5 insertions, 4 deletions
diff --git a/wlan-ng/files/pre-up b/wlan-ng/files/pre-up
index 002ab37511..0ae410edfa 100644
--- a/wlan-ng/files/pre-up
+++ b/wlan-ng/files/pre-up
@@ -1,4 +1,7 @@
#!/bin/sh
+
+case "$METHOD" in loopback) exit 0 ;; esac
+
#
# This script takes care of bringing up wlan-ng device.
# It is run by ifup, and gets information from the
@@ -13,10 +16,8 @@ if [ ! -x $WLANCTL ] ; then
fi
# Detect and act only on linux-wlan-ng interfaces
-if [ -x /sbin/wlancfg ]; then
- if ! /sbin/wlancfg show $IFACE >/dev/null 2>&1; then
- exit 0
- fi
+if [ "$IF_WIRELESS_TYPE" != "wlan-ng" ]; then
+ exit 0
fi
# Create a lock file; remove on script exit. This is a fairly crummy lock,