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:53:27 +0100 |
| commit | 2824aa1f016cd6a15eb16f72bf1df1e9a77f7abf (patch) | |
| tree | d6d031c37b73f69685552e5e2720d2064d3ae342 /scripts/live-bottom | |
| parent | 036e76c546c5c335dd7cea4a5027e71df5e57c76 (diff) | |
| download | live-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-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}" ] |
