File: init.ipx

package info (click to toggle)
ipx 1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 140 kB
  • ctags: 59
  • sloc: ansic: 1,054; sh: 69; makefile: 61
file content (41 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
#
# ipx       Bring up/down IPX networking
#

# Source function library.
. /etc/rc.d/init.d/functions

. /etc/sysconfig/network
. /etc/sysconfig/ipx

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# See how we were called.
case "$1" in
  start)
	if [ ${IPX_CONFIGURED} = "yes" ]; then
		if [ ${IPX_INTERNAL_NET} = "yes" ]; then
			/sbin/ipx_internal_net add ${IPX_NETNUM}
		else
			/sbin/ipx_interface add -p ${IPX_DEVICE} \
				${IPX_FRAME} ${IPX_NETNUM}
		fi
	fi
	ipx_configure \
		--auto_primary=${IPX_AUTO_PRIMARY} \
		--auto_interface=${IPX_AUTO_INTERFACE}
        touch /var/lock/subsys/ipx
        ;;
  stop)
	ipx_configure --auto_primary=off --auto_interface=off
	ipx_interface delall
        rm -f /var/lock/subsys/ipx
        ;;
  *)
        echo "Usage: network {start|stop}"
        exit 1
esac

exit 0