PHP Code:
#!/bin/sh
##Start.sh modded by Alex.b
./clear.sh > /dev/null 2>&1 &
echo -e "\033[31mClearscript ausgeführt!\033[0m"
sleep 10
echo -e "\033[31mWieviele Channels möchtest du Starten ? \n 1 - 1 Channel\n 2 - 2 Channel\033[0m"
read chs
case $chs in
1*)
cd db/
./db > /dev/null 2>&1 &
echo -e "\033[31m \n Starting DB DONE\033[0m"
cd ../auth
./auth > /dev/null 2>&1 &
echo -e "\033[31m \n Starting Auth DONE\033[0m"
cd ../channel_1/
./start_CH1.sh > /dev/null 2>&1 &
echo -e "\033[31m \n Starting Channel1 DONE\033[0m"
cd ../game99/
./game99 > /dev/null 2>&1 &
echo -e "\033[31m \n Starting game99 DONE\033[0m"
cd ../mark_server/
./mark_server > /dev/null 2>&1 &
echo -e "\033[31m \n Starting mark_server DONE\033[0m"
cd ..
sleep 10
echo -e "\033[31m \n Server successful start. \n You can now Login !\033[0m"
;;
2*)
cd db/
./db > /dev/null 2>&1 &
echo -e "\033[31m \n Starte DB...\033[0m"
cd ../auth
./auth > /dev/null 2>&1 &
echo -e "\033[31m \n Starte Auth...\033[0m"
cd ../channel_1/
./start_CH1.sh > /dev/null 2>&1 &
echo -e "\033[31m \n Starte Channel 1...\033[0m"
cd ..
sleep 5
cd channel_2/
./start_CH2.sh > /dev/null 2>&1 &
echo -e "\033[31m \n Starte Channel 2...\033[0m"
cd ../game99/
./game99 > /dev/null 2>&1 &
echo -e "\033[31m \n Starting game99 DONE\033[0m"
cd ../mark_server/
./mark_server > /dev/null 2>&1 &
echo -e "\033[31m \n Starting mark_server DONE\033[0m"
cd ..
sleep 40
echo -e "\033[31m \n Server ist gestartet. \n Es kann nun eingeloggt werden!\033[0m"
;;
esac