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

Last change on this file since eec6401 was 7df280d, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Change /bin/sh to /bin/bash in the bootscripts because the bootscripts use bashisms. Having ash linked to sh will cause errors. Thanks to Bigdassaved for providing the diff and Copper for bring up the issue.

  • Property mode set to 100644
File size: 1022 bytes
Line 
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.