aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnetwork2
1 files changed, 2 insertions, 0 deletions
diff --git a/network b/network
index b16c9f1..2510b58 100755
--- a/network
+++ b/network
@@ -31,6 +31,8 @@ ifup()
echo "usage: $0 ifup <interface_name>"
return 1
fi
+ # don't bring up an interface that's already up
+ [ "`/sbin/ifconfig ${1} 2>/dev/null | grep UP`" ] && return 1
eval iwcfg="\$wlan_${1}"
if [ "$iwcfg" != "" ]; then
/usr/sbin/iwconfig $iwcfg