View Single Post
  #1 (permalink)  
Old 03-20-2005
KiD2004's Avatar
KiD2004 KiD2004 is offline
Registered User
 
Join Date: Jan 2004
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
KiD2004 is on a distinguished road
rcs for 109 official

Does someone have the lines rcs shaped for 109 officials + newcamd?
is it ok for the 109 official and newcamd?

touch /tmp/.enigma
while [ -e /tmp/.enigma ]
do
rm -rf /tmp/camd.socket
/var/bin/cardserv
/var/bin/newcamd
/bin/enigma
ret=$?
echo "enigma returned with "$ret
case $ret in
0)
echo "Shutdown"
rm /tmp/.enigma
/sbin/halt
;;
3)
echo "Reboot Flash"
killall -9 newcamd
killall -9 cardserv
rm /tmp/.enigma
umount /var
umount /hdd
/bin/flashtool
;;
4)
echo "Reboot"
rm /tmp/.enigma
/sbin/reboot
;;
*) echo "Restart"
;;
esac
killall -9 newcamd
killall -9 cardserv
done

exit 0

Last edited by KiD2004 : 03-20-2005 at 07:42 PM.
Reply With Quote
Sponsored links
 
Page generated in 0.10836 seconds with 9 queries