From: Steven Shiau Date: Sat, 4 Sep 2010 06:19:35 +0000 (+0200) Subject: Allowing to assign no gateway in networking bottom script. X-Git-Tag: debian/2.0.4-1~4 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=be44d665e507f9cb00bf28b95ddb6612502d69af Allowing to assign no gateway in networking bottom script. --- diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking index 8c856c6..9554b77 100755 --- a/scripts/live-bottom/23networking +++ b/scripts/live-bottom/23networking @@ -65,10 +65,18 @@ allow-hotplug ${ifname} iface ${ifname} inet static address ${ifaddress} netmask ${ifnetmask} +EOF + +if [ -n "${ifgateway}" ] +then + +cat >> "${IFFILE}" << EOF gateway ${ifgateway} EOF +fi + done else if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]