summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ccw_init8
1 files changed, 6 insertions, 2 deletions
diff --git a/ccw_init b/ccw_init
index 946dbe9..0d8aaf7 100644
--- a/ccw_init
+++ b/ccw_init
@@ -110,7 +110,12 @@ done
# driver missing or not loaded
[ ! -e $DIR ] && exit 0
-CHANNEL1=${SUBCHANNELS//,*/}
+OLD_IFS="$IFS"
+IFS=","
+set $SUBCHANNELS
+IFS="$OLD_IFS"
+CHANNEL1=$1
+CHANNEL2=$2
SYSDIR="$DIR/$CHANNEL1"
[ -e $SYSDIR ] && exit 0
@@ -123,7 +128,6 @@ fi
DRIVER=$(readlink $DEVPATH/driver)
DRIVER=${DRIVER##*/}
-CHANNEL2=${SUBCHANNELS##*,}
if [ "$DRIVER" = "lcs" -a "$NETTYPE" = "ctc" ]; then
echo "$CHANNEL" > /sys/bus/ccw/drivers/lcs/unbind
echo "$CHANNEL" > /sys/bus/ccw/drivers/ctcm/bind