summaryrefslogtreecommitdiff
path: root/net-mgmt/ipcad/files/ipcad.sh.tmpl
blob: 6fda2ff21dce91d0438fe437be7a47e487202340 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh 
# ipcad startup script example. 

case "$1" in
start)
	if [ -x !!PREFIX!!/bin/ipcad -a -f !!PREFIX!!/etc/ipcad.conf ]; then 
		!!PREFIX!!/bin/ipcad -rds && echo -n ' ipcad' 
	fi
	;;
stop)
	/usr/bin/killall ipcad && /bin/echo -n ' ipcad'
	;;
*)
	/bin/echo "Usage: `basename $0` {start|stop}" >&2
	exit 64
	;;
esac

exit 0