Don't bring up eth2 for booting process of redundant router

This commit is contained in:
Sheng Yang 2012-05-01 15:39:47 -07:00
parent 5fda83b735
commit b6eff028b8

View File

@ -205,10 +205,9 @@ setup_interface() {
ifdown $intf
else
ifdown $intf
ifup $intf
if [ "$RROUTER" == "1" -a "$1" == "2" ]
if [ "$RROUTER" != "1" -o "$1" != "2" ]
then
ifdown $intf
ifup $intf
fi
fi
}