summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ccw_init7
1 files changed, 6 insertions, 1 deletions
diff --git a/ccw_init b/ccw_init
index 42bc042..0201393 100644
--- a/ccw_init
+++ b/ccw_init
@@ -10,8 +10,10 @@ get_config_line_by_subchannel()
local CHANNEL
CHANNEL="$1"
while read line; do
- IFS=,
+ OLD_IFS="$IFS"
+ IFS=","
set $line
+ IFS="$OLD_IFS"
for i in $@; do
if [ "$CHANNEL" = "$i" ]; then
echo $line
@@ -29,7 +31,10 @@ if [ $MODE = "dracut" ]; then
[ $? -ne 0 -o -z "$CONFIG_LINE" ] && break
+ OLD_IFS="$IFS"
+ IFS=","
set $CONFIG_LINE
+ IFS="$OLD_IFS"
NETTYPE=$1
shift
SUBCHANNELS="$1"