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 51dd7d908f
commit 7882d2ad59

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