summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-09-28 19:59:18 +0000
committerbrooks <brooks@FreeBSD.org>2005-09-28 19:59:18 +0000
commit3f995d4eb8d88885ff135770d5ad06c212838ca7 (patch)
tree78c6d0e44e95aa37bd23108626b513cab8a0f310 /etc/pccard_ether
parent9f1a2cf085749b42f40b4f2fcc4012200ac6cf23 (diff)
downloadFreeBSD-src-3f995d4eb8d88885ff135770d5ad06c212838ca7.zip
FreeBSD-src-3f995d4eb8d88885ff135770d5ad06c212838ca7.tar.gz
Be less IPv4 centric. When checking if the interface is already
configured, check if the UP flag is set instead of checking for the netmask keyword.
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-xetc/pccard_ether2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index 04c6f76..084ddb5 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -71,7 +71,7 @@ fi
case ${startstop} in
[Ss][Tt][Aa][Rr][Tt] | '')
if [ -x /usr/bin/grep ]; then
- if ifconfig $ifn | grep -s netmask > /dev/null 2>&1; then
+ if ifconfig $ifn | grep -s '[<,]UP[,>]' > /dev/null 2>&1; then
# Interface is already up, so ignore it.
exit 0
fi
OpenPOWER on IntegriCloud