Correctly remove an interface's ipv4 address when the user calls
"/etc/rc.d/netif stop XXX". The old globbing pattern failed to account for the possibility of a tab occuring before "inet". Reviewed by: will Approved by: ken (mentor, implicit) MFC after: Never (bug affects head only) Sponsored by: Spectra Logic
This commit is contained in:
parent
30e71983d0
commit
2adf57829e
@ -661,9 +661,9 @@ ipv4_down()
|
||||
for _inet in $inetList ; do
|
||||
# get rid of extraneous line
|
||||
case $_inet in
|
||||
"") break ;;
|
||||
inet\ *) ;;
|
||||
*) continue ;;
|
||||
"") break ;;
|
||||
\ inet\ *|inet\ *) ;;
|
||||
*) continue ;;
|
||||
esac
|
||||
[ -z "$_inet" ] && break
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user