1
0
mirror of synced 2026-04-13 07:04:23 +00:00

Fix possible missing gateway in generated /etc/network/interfaces

Closes: https://bugs.debian.org/764625
This commit is contained in:
Santiago Vila
2014-10-09 18:54:28 +02:00
committed by Axel Beckert
parent 66a74b6f9f
commit 07d014a0d6

View File

@@ -88,8 +88,9 @@ setupStaticNetworking ()
#
# gateway address?
#
gway='';
if [ -n "${gateway}" ]; then
gateway=" gateway ${gateway}"
gway=" gateway ${gateway}"
fi
#
@@ -107,7 +108,7 @@ iface lo inet loopback
auto eth0
iface eth0 inet static
address ${ip1}
${gateway}
${gway}
netmask ${netmask}
${bcast}
${point}