Biasse
03-10-11, 20:49
Is this right?
__________________________________________
#!/bin/sh
EMUNAME="Gbox"
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $EMUNAME"
remove_tmp
sleep 1
/usr/bin/dccamd &
sleep 3
/usr/bin/gbox &
;;
stop)
echo "[SCRIPT] $1: $EMUNAME"
killall -9 dccamd gbox 2>/dev/null
sleep 1
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0
__________________________________________
#!/bin/sh
EMUNAME="Gbox"
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $EMUNAME"
remove_tmp
sleep 1
/usr/bin/dccamd &
sleep 3
/usr/bin/gbox &
;;
stop)
echo "[SCRIPT] $1: $EMUNAME"
killall -9 dccamd gbox 2>/dev/null
sleep 1
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
exit 0