From e7c446a4fac04f96e670227101865a88d11ee806 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Mon, 30 Aug 2004 10:29:57 +0000 Subject: LCS devices use portno instead if portname --- sysconfig/network-scripts/network-functions | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sysconfig') 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 } -- cgit v1.2.1