mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 6064: doesn't set GATEWAYDEV if eth2 is not set
status 6064: resolved fixed
This commit is contained in:
parent
8c806f6dad
commit
b57d3e282d
@ -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…
x
Reference in New Issue
Block a user