X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F23networking;h=8c856c6cc2ab24369278f2e8088abf829c3c3bc4;hb=f6f3b5de7d49571348881578b8f7e05ce7a46d3b;hp=871d8c0b84c74f0e9a70764bfa0995ff783330fd;hpb=762405f8bac3e19efe419aebf371be168aacf8cd;p=live-boot-grml.git diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking index 871d8c0..8c856c6 100755 --- a/scripts/live-bottom/23networking +++ b/scripts/live-bottom/23networking @@ -51,17 +51,17 @@ udevadm settle if [ -z "${NETBOOT}" -a -n "${STATICIP}" -a "${STATICIP}" != "frommedia" ] then - parsed=$(echo "${STATICIP}" | sed -e 's/:/ /g') + parsed=$(echo "${STATICIP}" | sed -e 's/,/ /g') for ifline in ${parsed} do - ifname="$(echo ${ifline} | cut -f1 -d ',')" - ifaddress="$(echo ${ifline} | cut -f2 -d ',')" - ifnetmask="$(echo ${ifline} | cut -f3 -d ',')" - ifgateway="$(echo ${ifline} | cut -f4 -d ',')" + ifname="$(echo ${ifline} | cut -f1 -d ':')" + ifaddress="$(echo ${ifline} | cut -f2 -d ':')" + ifnetmask="$(echo ${ifline} | cut -f3 -d ':')" + ifgateway="$(echo ${ifline} | cut -f4 -d ':')" cat >> "${IFFILE}" << EOF -auto ${ifname} +allow-hotplug ${ifname} iface ${ifname} inet static address ${ifaddress} netmask ${ifnetmask} @@ -90,7 +90,7 @@ else i="$(basename ${interface})" cat >> "${IFFILE}" << EOF -auto ${i} +allow-hotplug ${i} iface ${i} inet ${method} EOF @@ -138,7 +138,7 @@ fi # grep -q "iface ${i}" ${IFFILE} && continue # #cat >> "${IFFILE}" << EOF -#auto ${i} +#allow-hotplug ${i} #iface ${i} inet dhcp # #EOF