File: MacGate.init

package info (click to toggle)
macgate 1.14-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 148 kB
  • ctags: 137
  • sloc: ansic: 1,163; sh: 197; makefile: 59
file content (37 lines) | stat: -rwxr-xr-x 748 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
#
# chkconfig: 345 92 07
# description: MacGate provides automatic addition and deletion
#	of Appletalk-IP routes for Macintoshes using the Linux
#	server as a Appletalk-IP Gateway.
#

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

# Source networking configuration.
. /etc/sysconfig/network

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

# See how we were called.
case "$1" in
  start)
	ifconfig ipddp0 192.168.1.4 up
	echo -n "Starting AppleTalk-IP services: "
	daemon MacGated -s
	echo
	touch /var/lock/subsys/MacGate
	;;
  stop)
	echo -n "Shutting down AppleTalk-IP services: "
	killproc MacGated
	rm -f /var/lock/subsys/MacGated
	echo ""
	;;
  *)
	echo "Usage: MacGate.init {start|stop}"
	exit 1
esac