5 # configures IPX on $1 if appropriate
7 . /etc/sysconfig/network
8 . /etc/rc.d/init.d/functions
9 . /lib/rc-scripts/functions.network
11 PATH=/sbin:/usr/sbin:/bin:/usr/bin
13 if [ "$1" = "" ]; then
14 nls "Usage: %s <device name>" "ifup-ipx" >&2
22 if [ ! -x /sbin/ipx_interface ] ; then
23 nls "%s is missing. Can't continue." "/sbin/ipx_interface"
30 [ -f "$CONFIG" ] || CONFIG=ifcfg-$CONFIG
33 # set all major variables
36 # add ipx for all frame types
37 for frametype in '802.2' '802.2TR' '802.3' 'EtherII' 'SNAP'; do
38 framename=$(echo $frametype | awk ' { gsub(/\./,"_"); print $0 } ')
39 case $(eval echo $(echo \$$(echo IPXACTIVE_$framename))) in
41 case $(eval echo $(echo \$$(echo IPXPRIMARY_$framename))) in
42 yes|true) primary="-p" ;;
45 ip link set $DEVICE up
46 /sbin/ipx_interface add $primary $DEVICE $frametype \
47 $(eval echo $(echo \$$(echo IPXNETNUM_$framename)))