bug 13821: Shutdown interface with ip 0.0.0.0

status 13821: resolved fixed

Reviewed-by: Frank
This commit is contained in:
Sheng Yang 2012-02-16 14:10:49 -08:00
parent e8c309b447
commit 280fb3e72b
1 changed files with 5 additions and 0 deletions

View File

@ -194,6 +194,11 @@ setup_interface() {
fi
fi
if [ "$ip" == "0.0.0.0" -o "$ip" == "" ]
then
ifconfig $intf down
fi
if [ "$force" == "force" ]
then
ifdown $intf