summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Horák <dan@danny.cz>2010-05-17 15:14:13 +0200
committerDan Horák <dan@danny.cz>2010-05-17 15:14:13 +0200
commitbf5bfc3758640762d202200f9ea79e5f2151d876 (patch)
treeb2874ed602e9295ddc4eab2f0ebffce59799acf7
parent8eadea7bff892a78877c2204326e85945ca3a16a (diff)
downloadutils-bf5bfc3758640762d202200f9ea79e5f2151d876.tar.gz
utils-bf5bfc3758640762d202200f9ea79e5f2151d876.tar.xz
utils-bf5bfc3758640762d202200f9ea79e5f2151d876.zip
fix IFS usage
-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"