aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-08-15 22:15:30 +0000
committerBill Nottingham <notting@redhat.com>2001-08-15 22:15:30 +0000
commit3c26baddb12d1fc5c300df579aad33f2daab0469 (patch)
treea0c09c454d964c78e1a21c19c74a836d55e93f31 /sysconfig
parentc267b6eb51586f7eba2a1397ba3b6ef7364b0a55 (diff)
downloadinitscripts-3c26baddb12d1fc5c300df579aad33f2daab0469.tar
initscripts-3c26baddb12d1fc5c300df579aad33f2daab0469.tar.gz
initscripts-3c26baddb12d1fc5c300df579aad33f2daab0469.tar.bz2
initscripts-3c26baddb12d1fc5c300df579aad33f2daab0469.tar.xz
initscripts-3c26baddb12d1fc5c300df579aad33f2daab0469.zip
ipx support returns (#51787)r6-20
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup4
-rwxr-xr-xsysconfig/network-scripts/ifup-ipx44
2 files changed, 48 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index aec95481..81f16d33 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -242,5 +242,9 @@ if [ "${NETWORKING_IPV6}" = "yes" ]; then
/etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG}
fi
+if [ "${IPX}" = yes ]; then
+ /etc/sysconfig/network-scripts/ifup-ipx ${DEVICE}
+fi
+
exec /etc/sysconfig/network-scripts/ifup-post ${CONFIG} ${2}
diff --git a/sysconfig/network-scripts/ifup-ipx b/sysconfig/network-scripts/ifup-ipx
new file mode 100755
index 00000000..4d03d833
--- /dev/null
+++ b/sysconfig/network-scripts/ifup-ipx
@@ -0,0 +1,44 @@
+#!/bin/bash
+# configures IPX on $1 if appropriate
+
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+
+if [ "$1" = "" ]; then
+ echo $"usage: $0 <net-device>"
+ exit 1
+fi
+
+if [ ! -x /sbin/ipx_interface ] ; then
+ # cannot configure IPX with non-existant utilities
+ exit 0
+fi
+
+. /etc/sysconfig/network
+
+case $IPX in yes|true) ;; *) exit 0 ;; esac
+
+cd /etc/sysconfig/network-scripts
+. network-functions
+
+CONFIG=$1
+[ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG
+source_config
+
+for frametype in 802.2 802.3 ETHERII SNAP ; do
+ framename=$(echo $frametype | sed 's/\./_/')
+ eval ACT=\$IPXACTIVE_$framename
+ case $ACT in
+ yes|true)
+ eval PRIM=\$IPXPRIMARY_$framename
+ case $PRIM in
+ yes|true) primary=-p ;;
+ *) primary= ;;
+ esac
+ eval NUM=\$IPXNETNUM_$framename
+ /sbin/ipx_interface add $primary $1 $frametype $NUM
+ ;;
+ esac
+done
+
+exit 0
+