X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F23networking;h=871d8c0b84c74f0e9a70764bfa0995ff783330fd;hb=52dcef518bdb95605670b8dc12257057bf7a2dc0;hp=429a135dc4e56407571ca02e11ca2fb86149ae52;hpb=c9f0399f0fd5da9042a4190763e4ecef653af8ce;p=live-boot-grml.git diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking index 429a135..871d8c0 100755 --- a/scripts/live-bottom/23networking +++ b/scripts/live-bottom/23networking @@ -18,7 +18,7 @@ case "${1}" in ;; esac -# live-initramfs header +# live-boot header if [ -n "${NONETWORKING}" ] then @@ -27,9 +27,9 @@ fi . /scripts/live-functions -log_begin_msg "Preconfiguring networking..." +log_begin_msg "Preconfiguring networking" -# live-initramfs script +# live-boot script IFFILE="/root/etc/network/interfaces" @@ -47,7 +47,7 @@ iface lo inet loopback EOF udevadm trigger -udevsettle +udevadm settle if [ -z "${NETBOOT}" -a -n "${STATICIP}" -a "${STATICIP}" != "frommedia" ] then @@ -71,7 +71,7 @@ EOF done else - if [ -z "${NETBOOT}" ] + if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ] then # default, dhcp assigned method="dhcp" @@ -82,7 +82,7 @@ else fi # iterate the physical interfaces and add them to the interfaces list - if [ "${method}" != dhcp ] || [ ! -x /root/usr/sbin/NetworkManager ] + if [ "${method}" != dhcp ] || ([ ! -x /root/usr/sbin/NetworkManager ] && [ ! -x /root/usr/sbin/wicd ]) then for interface in /sys/class/net/eth* /sys/class/net/ath* /sys/class/net/wlan* do @@ -119,7 +119,7 @@ EOF cat > /root/etc/resolv.conf << EOF # /etc/resolv.conf -# Autogenerated by live-initramfs +# Autogenerated by live-boot search ${rc_search} domain ${rc_search} ${rc_server0}