diff options
-rwxr-xr-x | network | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |