* Merged newxml into HEAD
[linux_from_scratch.git] / bootscripts / blfs / sysconfig / network-devices / services / ipx
blobcd3ae7c43a170257986b80ed5ae840b307528b4e
1 #!/bin/sh
2 # Begin $network-devices/services/ipx
4 # Based upon lfs-bootscripts-1.12 $network_devices/if{down,up}
5 # Rewritten by Nathan Coulson <nathan@linuxfromscratch.org>
6 # Adapted for ipx by DJ Lucas <dj@lucasit.com>
8 . /etc/sysconfig/rc || exit
9 . $rc_functions || exit
10 . $network_devices/ifconfig.$1
12 case $2 in
13 up)
14 echo "Setting up the IPX protocol on $IPXDEV"
15 /sbin/ifconfig $IPXDEV up > /dev/null
16 /bin/ipx_interface add $IPXDEV $FRAME &&
17 /bin/ipx_configure --auto_interface=on --auto_primary=on
18 evaluate_retval
21 down)
22 echo "Stopping IPX on the $IPXDEV interface..."
23 /bin/ipx_configure --auto_interface=off --auto_primary=off &&
24 /bin/ipx_interface del $IPXDEV $FRAME
25 evaluate_retval
29 echo echo "Usage: $0 [interface] {up|down}"
30 exit 1
33 esac
35 # End $network-devices/services/ipx