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.
This commit is contained in:
Brooks Davis 2005-09-28 19:59:18 +00:00
parent 9fa7087a67
commit 94d785c84c

View File

@ -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