#! /bin/sh

killall sboox 
killall mplayer 
killall server 

cd "$(dirname "$0")"

rm -rf /home/root/sboox/* 
mkdir /home/root/sboox
cp -f /home/root/sboox.bak/* /home/root/sboox/
chmod u+x /home/root/sboox/run.sh
/home/root/sboox/run.sh