X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F23networking;h=86d456213d444cf1430d9bb35b0d0a5868dcdd64;hb=2d129205223e1fb6322bb03a9cb9fdf1736885b8;hp=8c856c6cc2ab24369278f2e8088abf829c3c3bc4;hpb=e0082c6f266ed5df883a53bf5023f7dd70fbe9ec;p=live-boot-grml.git diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking index 8c856c6..86d4562 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}" ] @@ -81,8 +89,8 @@ else method="manual" fi - # iterate the physical interfaces and add them to the interfaces list - if [ "${method}" != dhcp ] || ([ ! -x /root/usr/sbin/NetworkManager ] && [ ! -x /root/usr/sbin/wicd ]) + # iterate the physical interfaces and add them to the interfaces list and also add when ethdevice= called on cmdline + if [ "${method}" != dhcp ] || ([ ! -x /root/usr/sbin/NetworkManager ] && [ ! -x /root/usr/sbin/wicd ]) || [ ! -z "${ETHDEVICE}" ] then for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan* do