Updating seperators in networking bottom script to fix ip parameter parsing (Closes...
authorDaniel Baumann <daniel@debian.org>
Thu, 2 Sep 2010 08:40:33 +0000 (10:40 +0200)
committerDaniel Baumann <daniel@debian.org>
Thu, 2 Sep 2010 08:40:46 +0000 (10:40 +0200)
scripts/live-bottom/23networking

index f023729..8c856c6 100755 (executable)
@@ -51,14 +51,14 @@ 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
 allow-hotplug ${ifname}