diff options
author | Judd Vinet <judd@archlinux.org> | 2005-11-11 18:46:12 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-11-11 18:46:12 +0000 |
commit | 9683aeadd86569b69ad44d270e006284e565dfd5 (patch) | |
tree | be02d188ae46ef3ce5efb00048c385c3bee1b909 /network | |
parent | 78ce45a497753e2be061e29a6464fcd969041895 (diff) |
changed ifup() to skip interfaces that are already up
Diffstat (limited to 'network')
-rwxr-xr-x | network | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |