if eth1 and eth2 in CP/SS VM are in same network, set default gateway on eth2,

This commit is contained in:
anthony 2010-08-30 19:43:29 -07:00
parent b37f7521a5
commit 3820e1c396
1 changed files with 5 additions and 1 deletions

View File

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