summaryrefslogtreecommitdiff
path: root/scripts/live-bottom
diff options
context:
space:
mode:
authorSteven Shiau <steven@nchc.org.tw>2010-09-04 08:19:35 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:53:27 +0100
commit2824aa1f016cd6a15eb16f72bf1df1e9a77f7abf (patch)
treed6d031c37b73f69685552e5e2720d2064d3ae342 /scripts/live-bottom
parent036e76c546c5c335dd7cea4a5027e71df5e57c76 (diff)
downloadlive-boot-2824aa1f016cd6a15eb16f72bf1df1e9a77f7abf.tar.gz
live-boot-2824aa1f016cd6a15eb16f72bf1df1e9a77f7abf.zip
Allowing to assign no gateway in networking bottom script.
Diffstat (limited to 'scripts/live-bottom')
-rwxr-xr-xscripts/live-bottom/23networking8
1 files changed, 8 insertions, 0 deletions
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}" ]