Allowing to assign no gateway in networking bottom script.
[live-boot-grml.git] / 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}" ]