source: bootscripts-standard/bootscripts/cblfs/sysconfig/network-devices/services/ipx@ 2167cfe

Last change on this file since 2167cfe was 2167cfe, checked in by William Harrington <kb0iic@…>, 11 years ago

bootscripts are the scripts used for the sysvinit book.

  • Property mode set to 100644
File size: 1022 bytes
RevLine 
[2167cfe]1#!/bin/bash
2# Begin $network-devices/services/ipx
3
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>
7
8#$LastChangedBy: bdubbs $
9#$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $
10
11. /etc/sysconfig/rc || exit
12. $rc_functions || exit
13. $IFCONFIG
14
15case $2 in
16 up)
17 boot_mesg "Starting IPX on the $1 interface..."
18 /bin/ipx_interface add $1 $FRAME &&
19 /bin/ipx_configure --auto_interface=on --auto_primary=on
20 evaluate_retval
21 ;;
22
23 down)
24 boot_mesg "Stopping IPX on the $1 interface..."
25 /bin/ipx_configure --auto_interface=off --auto_primary=off &&
26 /bin/ipx_interface del $1 $FRAME
27 evaluate_retval
28 ;;
29
30 *)
31 echo echo "Usage: $0 [interface] {up|down}"
32 exit 1
33 ;;
34
35esac
36
37# End $network-devices/services/ipx
Note: See TracBrowser for help on using the repository browser.