Allowing to assign no gateway in networking bottom script.
authorSteven Shiau <steven@nchc.org.tw>
Sat, 4 Sep 2010 06:19:35 +0000 (08:19 +0200)
committerDaniel Baumann <daniel@debian.org>
Sat, 4 Sep 2010 06:19:35 +0000 (08:19 +0200)
scripts/live-bottom/23networking

index 8c856c6..9554b77 100755 (executable)
@@ -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}" ]