tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / workbench / network / stacks / AROSTCP / dhcp / contrib / solaris.init
blob2c79898a5296b540dc42fb353598a8dcbb116b82
1 #!/bin/sh
2 # Contributed by Brian Murrell
4 state=$1
6 set `who -r`
7 case $state in
9 'start')
10 if [ $9 = "2" -o $9 = "3" ]
11 then
12 exit
14 if [ -f @PREFIX@/sbin/dhcpd ]; then
15 echo "Starting the ISC DHCP server"
16 @PREFIX@/sbin/dhcpd
19 'stop')
20 if [ -f @PREFIX@/etc/dhcpd.pid ]; then
21 PID=`cat @PREFIX@/etc/dhcpd.pid`
22 if [ -d /proc/$PID ]; then
23 echo "Stopping the ISC DHCP server"
24 kill $PID
28 esac