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