aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.com>2004-08-30 10:29:57 +0000
committerKarsten Hopp <karsten@redhat.com>2004-08-30 10:29:57 +0000
commite7c446a4fac04f96e670227101865a88d11ee806 (patch)
tree52b3e2e6c83895d7e4904cd14281a2e29b6f5c4a /sysconfig/network-scripts/network-functions
parent93b23614cfc63da7c28dc14bcaae43e8a34214b5 (diff)
downloadinitscripts-e7c446a4fac04f96e670227101865a88d11ee806.tar
initscripts-e7c446a4fac04f96e670227101865a88d11ee806.tar.gz
initscripts-e7c446a4fac04f96e670227101865a88d11ee806.tar.bz2
initscripts-e7c446a4fac04f96e670227101865a88d11ee806.tar.xz
initscripts-e7c446a4fac04f96e670227101865a88d11ee806.zip
LCS devices use portno instead if portnamer7-74
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-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
}