aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.com>2004-09-01 14:08:15 +0000
committerKarsten Hopp <karsten@redhat.com>2004-09-01 14:08:15 +0000
commitd2c50875989152bfb783a8beed097e77886bf247 (patch)
tree8a924d9f38defddc46a6ba815eca4c8165a982f0 /sysconfig/network-scripts
parent14841bc9529da8787f0084644b6019b9421bfa99 (diff)
downloadinitscripts-d2c50875989152bfb783a8beed097e77886bf247.tar
initscripts-d2c50875989152bfb783a8beed097e77886bf247.tar.gz
initscripts-d2c50875989152bfb783a8beed097e77886bf247.tar.bz2
initscripts-d2c50875989152bfb783a8beed097e77886bf247.tar.xz
initscripts-d2c50875989152bfb783a8beed097e77886bf247.zip
- 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
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions16
1 files changed, 3 insertions, 13 deletions
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