#!/bin/sh
#v.1.0.1 10.05.2005 by ruDREAM
#profile for newcamd
case $1 in
start)
#betad.dreamTriple &			#start betad server
#sleep 2				#pause
cardserver.dreamTriple &		#start card server
sleep 2					#pause
cardspider.ppc &			#start card spider
sleep 3					#pause
#radegast.ppc &				#start client radegast
#sleep 3				#pause
newcamd.ppc &				#start newcamd demon
sleep 3					#pause
camdcmd.ppc wanon			#wan on
;;
during)
;;
stop)
kill `cat /tmp/newcamd.pid`		#stop newcamd
#kill `pidof radegast.ppc`		#stop client radegast
kill `pidof cardspider.ppc`		#stop card spider
kill `pidof cardserver.dreamTriple`	#stop card server
#kill `pidof betad.dreamTriple`		#stop btad server
sleep 1					#pause
rm -f /tmp/ecm.info 			#remove ecm info file
;;
esac
exit 0
