summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetwork4
1 files changed, 3 insertions, 1 deletions
diff --git a/network b/network
index 7489206..fbe77d8 100755
--- a/network
+++ b/network
@@ -19,7 +19,9 @@ ifup()
return 1
fi
# don't bring up an interface that's already up
- [ "$(/sbin/ifconfig ${1} 2>/dev/null | grep UP)" ] && return 0
+ [ "$(/sbin/ifconfig ${1} 2>/dev/null |\
+ grep -v 'inet6 addr: fe80:' |\
+ grep -e 'inet addr:' -e 'inet6 addr:')" ] && return 0
eval iwcfg="\$wlan_${1}"
if [ "$iwcfg" != "" ]; then
/usr/sbin/iwconfig $iwcfg