aboutsummaryrefslogtreecommitdiff
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2005-09-28 19:59:18 +0000
committerBrooks Davis <brooks@FreeBSD.org>2005-09-28 19:59:18 +0000
commit94d785c84c2056d768fe99a209bb4caa3cfc37f3 (patch)
tree78c6d0e44e95aa37bd23108626b513cab8a0f310 /etc/pccard_ether
parent9fa7087a67055937f244c676fff7492b0f24deab (diff)
downloadsrc-94d785c84c2056d768fe99a209bb4caa3cfc37f3.tar.gz
src-94d785c84c2056d768fe99a209bb4caa3cfc37f3.zip
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.
Notes
Notes: svn path=/head/; revision=150702
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 04c6f76f6616..084ddb5584f1 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