projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4703057
)
Updating seperators in networking bottom script to fix ip parameter parsing (Closes...
author
Daniel Baumann
<daniel@debian.org>
Thu, 2 Sep 2010 08:40:33 +0000
(10:40 +0200)
committer
Daniel Baumann
<daniel@debian.org>
Thu, 2 Sep 2010 08:40:46 +0000
(10:40 +0200)
scripts/live-bottom/23networking
patch
|
blob
|
history
diff --git
a/scripts/live-bottom/23networking
b/scripts/live-bottom/23networking
index
f023729
..
8c856c6
100755
(executable)
--- 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
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
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}
cat >> "${IFFILE}" << EOF
allow-hotplug ${ifname}