diff options
| author | Steven Shiau <steven@nchc.org.tw> | 2010-09-04 08:19:35 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:59:20 +0100 |
| commit | bd29dbf750f9dfc943d45d99439ed5adfc38016b (patch) | |
| tree | 93fa370d851c3373aa161057fc5dd00a45a99ba4 /scripts/live-bottom | |
| parent | 2918768a589a8c3a70866be43abcf98098ffbb1e (diff) | |
| download | live-boot-bd29dbf750f9dfc943d45d99439ed5adfc38016b.tar.gz live-boot-bd29dbf750f9dfc943d45d99439ed5adfc38016b.zip | |
Allowing to assign no gateway in networking bottom script.
Diffstat (limited to 'scripts/live-bottom')
| -rwxr-xr-x | scripts/live-bottom/23networking | 8 |
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}" ] |
