bug 6064: doesn't set GATEWAYDEV if eth2 is not set

status 6064: resolved fixed
This commit is contained in:
anthony 2010-08-31 17:38:26 -07:00
parent 8c806f6dad
commit b57d3e282d

View File

@ -50,9 +50,11 @@ setup_common() {
if [ "$BOOTPROTO" == "static" ]
then
replace_in_file /etc/sysconfig/network GATEWAY $GW
if [ "$ETH2_IP" != "0.0.0.0" ]
if [ -n "$ETH2_IP" -a "$ETH2_IP" != "0.0.0.0" ]
then
replace_in_file /etc/sysconfig/network GATEWAYDEV "eth2"
else
sed -i /GATEWAYDEV/d /etc/sysconfig/network
fi
else
sed -i /GATEWAY/d /etc/sysconfig/network