aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-02-06 15:37:46 -0500
committerBill Nottingham <notting@redhat.com>2009-02-06 15:37:46 -0500
commit252c7c1bf9779dbdba94abe47350c866ba8ca421 (patch)
tree1c9ad3b1cd0b4ce910bd42f4e93be92abf5f6d67 /src
parent9871eb65a9ceac563ee74dc37be0f3b67597f433 (diff)
downloadinitscripts-252c7c1bf9779dbdba94abe47350c866ba8ca421.tar
initscripts-252c7c1bf9779dbdba94abe47350c866ba8ca421.tar.gz
initscripts-252c7c1bf9779dbdba94abe47350c866ba8ca421.tar.bz2
initscripts-252c7c1bf9779dbdba94abe47350c866ba8ca421.tar.xz
initscripts-252c7c1bf9779dbdba94abe47350c866ba8ca421.zip
Don't re-init an existing device, it causes errors. (#484411, <jpayne@redhat.com>)
Diffstat (limited to 'src')
-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