]> git.saurik.com Git - apple/launchd.git/blob - launchd/src/StartupItems/AppleShare
429e6be5cdcaad3445c676e8f147cb034291709d
[apple/launchd.git] / launchd / src / StartupItems / AppleShare
1 #!/bin/sh
2
3 ##
4 # Apple File Protocol
5 ##
6
7 [ -f /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist ] && exit 0
8
9 . /etc/rc.common
10
11 StartService ()
12 {
13 if [ "${AFPSERVER:=-NO-}" = "-YES-" ]; then
14 echo "Starting Apple File Service"
15 /usr/sbin/AppleFileServer
16 fi
17 }
18
19 StopService ()
20 {
21 return 0
22 }
23
24 RestartService ()
25 {
26 return 0
27 }
28
29 RunService "$1"