From be44d665e507f9cb00bf28b95ddb6612502d69af Mon Sep 17 00:00:00 2001 From: Steven Shiau Date: Sat, 4 Sep 2010 08:19:35 +0200 Subject: [PATCH] Allowing to assign no gateway in networking bottom script. --- scripts/live-bottom/23networking | 8 ++++++++ 1 file changed, 8 insertions(+) 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}" ] -- 2.1.4