ifcfg/write-ifcfg.sh: fixed IFS resetting
parent
965d14726a
commit
02805bd1fc
|
@ -43,6 +43,7 @@ print_s390() {
|
||||||
local CONFIG_LINE
|
local CONFIG_LINE
|
||||||
local i
|
local i
|
||||||
local channel
|
local channel
|
||||||
|
local OLD_IFS
|
||||||
|
|
||||||
_netif="$1"
|
_netif="$1"
|
||||||
# if we find ccw channel, then use those, instead of
|
# if we find ccw channel, then use those, instead of
|
||||||
|
@ -62,9 +63,10 @@ print_s390() {
|
||||||
|
|
||||||
[ $? -ne 0 -o -z "$CONFIG_LINE" ] && return
|
[ $? -ne 0 -o -z "$CONFIG_LINE" ] && return
|
||||||
|
|
||||||
|
OLD_IFS=$IFS
|
||||||
IFS=","
|
IFS=","
|
||||||
set $CONFIG_LINE
|
set -- $CONFIG_LINE
|
||||||
IFS="$OLD_IFS"
|
IFS=$OLD_IFS
|
||||||
NETTYPE=$1
|
NETTYPE=$1
|
||||||
shift
|
shift
|
||||||
SUBCHANNELS="$1"
|
SUBCHANNELS="$1"
|
||||||
|
|
Loading…
Reference in New Issue