summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-02 10:40:33 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:59:20 +0100
commite0082c6f266ed5df883a53bf5023f7dd70fbe9ec (patch)
tree5bfa6a92ee4d5a5fd0ef8d2a37f15a675abefc89
parent423c34802dbb83533d4298da5b39c09a34b9d65c (diff)
downloadlive-boot-e0082c6f266ed5df883a53bf5023f7dd70fbe9ec.tar.gz
live-boot-e0082c6f266ed5df883a53bf5023f7dd70fbe9ec.zip
Updating seperators in networking bottom script to fix ip parameter parsing (Closes: #590494).
-rwxr-xr-xscripts/live-bottom/23networking10
1 files changed, 5 insertions, 5 deletions
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}