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:
parent
9fa7087a67
commit
94d785c84c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user