From 07d014a0d67a2096183c0c9354e9aec135c30df0 Mon Sep 17 00:00:00 2001 From: Santiago Vila Date: Thu, 9 Oct 2014 18:54:28 +0200 Subject: [PATCH] Fix possible missing gateway in generated /etc/network/interfaces Closes: https://bugs.debian.org/764625 --- hooks/common/40-setup-networking-deb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hooks/common/40-setup-networking-deb b/hooks/common/40-setup-networking-deb index f1c7fea..bc5b46e 100755 --- a/hooks/common/40-setup-networking-deb +++ b/hooks/common/40-setup-networking-deb @@ -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}