From 3f1835cd8915c0bd76ade5dbeed29992296bce61 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Sun, 3 May 1998 01:35:48 +0000 Subject: update to linuxconf 1.11r8 capabilities. Full support for IPX as configured by linuxconf. Updated sysconfig.txt documentation to reflect new parameters. --- sysconfig/network-scripts/ifup-ipx | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 sysconfig/network-scripts/ifup-ipx (limited to 'sysconfig/network-scripts/ifup-ipx') diff --git a/sysconfig/network-scripts/ifup-ipx b/sysconfig/network-scripts/ifup-ipx new file mode 100755 index 00000000..b04fda67 --- /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 " + exit 1 +fi + +if [ ! -x /usr/bin/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 +source_config + +for frametype in 802_2 802_3 ETHERII SNAP ; do + # Yes, this kind of evaluation is really necessary to do this. + # Welcome to shell programming... No, we were not smoking some + # particularly good floppies while we wrote this. :-) + case $(eval echo $(echo \$`echo IPXACTIVE_$frametype`)) in + yes|true) + case $(eval echo $(echo \$`echo IPXPRIMARY_$frametype`)) in + yes|true) primary=-p ;; + *) primary= ;; + esac + /usr/bin/ipx_interface add $1 $primary $frametype \ + $(eval echo $(echo \$`echo IPXNETNUM_$frametype`)) + ;; + esac +done + +exit 0 + -- cgit v1.2.1