From d2c50875989152bfb783a8beed097e77886bf247 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Wed, 1 Sep 2004 14:08:15 +0000 Subject: - qeth can hav eth, hsi and tr interfaces, lcs can have eth and tr interfaces, too. We can't tell apart if p.e. eth0 is qeth or lcs, but need to know it for sysfs configuration. Remove TYPE=QETH hack and use a more generic NETTYPE instead --- sysconfig/network-scripts/network-functions | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 8d14a780..a424a73c 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -331,23 +331,13 @@ configure_ccwgroup_device () { local DIR SYSDIR # SUBCHANNELS is only set on mainframe ccwgroup devices - [ -z "$SUBCHANNELS" ] && return - if [ "$TYPE" = "QETH" ]; then - DIR="/sys/bus/ccwgroup/drivers/qeth" - elif - [ "$TYPE" = "CTC" ]; then - DIR="/sys/bus/ccwgroup/drivers/ctc" - elif - [ "$TYPE" = "LCS" ]; then - DIR="/sys/bus/ccwgroup/drivers/lcs" - else - return - fi + [ -z "$SUBCHANNELS" -o -z "$NETTYPE" ] && return + DIR="/sys/bus/ccwgroup/drivers/$NETTYPE" SYSDIR="$DIR/${SUBCHANNELS//,*/}" [ ! -e $DIR/group ] && return echo "$SUBCHANNELS" > $DIR/group if [ -n "$PORTNAME" -a -e $SYSDIR/portname ]; then - if [ "$TYPE" = "LCS" ]; then + if [ "$NETTYPE" = "lcs" ]; then [ -e $SYSDIR/portno ] && echo "$PORTNAME" > $SYSDIR/portno else [ -e $SYSDIR/portname ] && echo "$PORTNAME" > $SYSDIR/portname -- cgit v1.2.1