aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/ccw_init2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ccw_init b/src/ccw_init
index beeaf8bf..a5009b47 100755
--- a/src/ccw_init
+++ b/src/ccw_init
@@ -22,7 +22,7 @@ fi
[ -z "$SUBCHANNELS" -o -z "$NETTYPE" ] && exit 0
DIR="/sys/bus/ccwgroup/drivers/$NETTYPE"
SYSDIR="$DIR/${SUBCHANNELS//,*/}"
-[ ! -e $DIR/group ] && exit 0
+[ -e $SYSDIR ] && exit 0
echo "$SUBCHANNELS" > $DIR/group
if [ -n "$PORTNAME" ]; then
if [ "$NETTYPE" = "lcs" ]; then