From: Daniel Baumann Date: Thu, 2 Sep 2010 08:40:33 +0000 (+0200) Subject: Updating seperators in networking bottom script to fix ip parameter parsing (Closes... X-Git-Tag: debian/2.0.2-1~4 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=046e64d4df9c092f205f70a5eb2d2b121850b043 Updating seperators in networking bottom script to fix ip parameter parsing (Closes: #590494). --- diff --git a/scripts/live-bottom/23networking b/scripts/live-bottom/23networking index f023729..8c856c6 100755 --- a/scripts/live-bottom/23networking +++ b/scripts/live-bottom/23networking @@ -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}