Fix possible missing gateway in generated /etc/network/interfaces
Closes: https://bugs.debian.org/764625
This commit is contained in:
committed by
Axel Beckert
parent
66a74b6f9f
commit
07d014a0d6
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user