gh-48: configure gateway only if it's explicitly set

pull/58/head
Javi Fontan 8 years ago
parent fed4992cd5
commit e31a53e57c

@ -72,13 +72,6 @@ get_gateway() {
if is_gateway; then if is_gateway; then
gateway=$(get_iface_var "GATEWAY") gateway=$(get_iface_var "GATEWAY")
if [ -z "$gateway" ]; then
if [ "$DEV" = "eth0" ]; then
net_prefix=$(echo $NETWORK | cut -d'.' -f1,2,3)
gateway="${net_prefix}.1"
fi
fi
echo $gateway echo $gateway
fi fi
} }

@ -72,13 +72,6 @@ get_gateway() {
if is_gateway; then if is_gateway; then
gateway=$(get_iface_var "GATEWAY") gateway=$(get_iface_var "GATEWAY")
if [ -z "$gateway" ]; then
if [ "$DEV" = "eth0" ]; then
net_prefix=$(echo $NETWORK | cut -d'.' -f1,2,3)
gateway="${net_prefix}.1"
fi
fi
echo $gateway echo $gateway
fi fi
} }

Loading…
Cancel
Save