]> git.saurik.com Git - apple/launchd.git/blob - launchd/src/StartupItems/IPServices
launchd-152.tar.gz
[apple/launchd.git] / launchd / src / StartupItems / IPServices
1 #!/bin/sh
2
3 ##
4 # IP Services
5 ##
6
7 [ -f /System/Library/LaunchDaemons/com.apache.httpd.plist ] && exit 0
8
9 . /etc/rc.common
10
11 StartService ()
12 {
13 if [ -a /etc/com.apple.named.conf.proxy ]
14 then
15 echo "Starting Internet address sharing"
16 /usr/libexec/InternetSharing
17 fi
18 }
19
20 StopService ()
21 {
22 return 0
23 }
24
25 RestartService ()
26 {
27 return 0
28 }
29
30 RunService "$1"