aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 45a45bd2..5724e9ba 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -352,8 +352,13 @@ configure_ccwgroup_device ()
SYSDIR="$DIR/${SUBCHANNELS//,*/}"
[ ! -e $DIR/group ] && return
echo "$SUBCHANNELS" > $DIR/group
- [ -n "$PORTNAME" -a -e $SYSDIR/portname ] && \
- echo "$PORTNAME" > $SYSDIR/portname
+ if [ -n "$PORTNAME" -a -e $SYSDIR/portname ]; then
+ if [ "$TYPE" = "LCS" ]; then
+ [ -e $SYSDIR/portno ] && echo "$PORTNAME" > $SYSDIR/portno
+ else
+ [ -e $SYSDIR/portname ] && echo "$PORTNAME" > $SYSDIR/portname
+ fi
+ fi
[ -e $SYSDIR/online ] && echo 1 > $SYSDIR/online
}