projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
965d147
)
ifcfg/write-ifcfg.sh: fixed IFS resetting
author
Harald Hoyer
<harald@redhat.com>
Tue, 22 May 2012 09:36:41 +0000
(11:36 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Tue, 22 May 2012 09:36:41 +0000
(11:36 +0200)
modules.d/45ifcfg/write-ifcfg.sh
patch
|
blob
|
history
diff --git
a/modules.d/45ifcfg/write-ifcfg.sh
b/modules.d/45ifcfg/write-ifcfg.sh
index
d1f6fe6
..
2b7cb5c
100755
(executable)
--- a/
modules.d/45ifcfg/write-ifcfg.sh
+++ b/
modules.d/45ifcfg/write-ifcfg.sh
@@
-43,6
+43,7
@@
print_s390() {
local CONFIG_LINE
local i
local channel
+ local OLD_IFS
_netif="$1"
# if we find ccw channel, then use those, instead of
@@
-62,9
+63,10
@@
print_s390() {
[ $? -ne 0 -o -z "$CONFIG_LINE" ] && return
+ OLD_IFS=$IFS
IFS=","
- set $CONFIG_LINE
- IFS=
"$OLD_IFS"
+ set
--
$CONFIG_LINE
+ IFS=
$OLD_IFS
NETTYPE=$1
shift
SUBCHANNELS="$1"