#!/bin/sh

### This file start default NEWCS   ####
#  creating iscan_adm for E2 ipbox900  #
#       http://ipbox900.com.ua         #
########################################

server_folder=/var/server/
config_box=/var/tuxbox/
server_config=/var/tuxbox/config/
snewcs_bin=newcs
sphoenix_xml=phoenix.xml
scam1_xml=cam1.xml
scam2_xml=cam2.xml
sexample=newcs.xml.example
default=newcs.xml

echo "NEWCS STOP" > /dev/dbox/fp0
killall newcs > /dev/null
killall newcs > /dev/null

cd $server_folder
./$snewcs_bin -c $server_config$scam1_xml

echo "NEWCS STARTED"
echo "NEWCS STARTED" > /dev/dbox/fp0
ps -aux | grep newcs