mirror of https://github.com/apache/cloudstack.git
bug 6064: doesn't set GATEWAYDEV if eth2 is not set
status 6064: resolved fixed
This commit is contained in:
parent
2b6c96a40e
commit
b77049a651
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue