#!/bin/sh
echo -e "\033[35m1 um CH1 to Start\n2 um CH1+2 to Start\n3 um CH1+2+3 to Start\n4 um CH1+2+3+4 to Start\033[0m"
read a
if [ "$a" = "1" ]
then
cd /usr/local/home/game/db
./db &
sleep 1
cd /usr/local/home/game/auth
./auth &
sleep 2
cd /usr/local/home/game/channel1/core1
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/channel1/core2
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/channel1/core3
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/game99
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
elif [ "$a" = "2" ]
then
cd /usr/local/home/game/db
./db &
sleep 1
cd /usr/local/home/game/auth
./auth &
sleep 2
cd /usr/local/home/game/channel1/core1
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/channel1/core2
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/channel1/core3
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/channel2/core1
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/channel2/core2
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/channel2/core3
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
sleep 2
cd /usr/local/home/game/game99
env LD_32_PRELOAD=/usr/local/home/game/share/LibCostume.so ./game &
elif [ "$a" = "3" ]
then
cd /usr/local/home/game/g1/db/
./db &
sleep 1
cd /usr/local/home/game/auth
./auth &
sleep 1
cd /usr/local/home/game/channel1/core1
./game &
sleep 1
cd /usr/local/home/game/channel1/core2
./game &
sleep 1
cd /usr/local/home/game/channel1/core3
./game &
sleep 1
cd /usr/local/home/game/channel2/channel2_1
./game &
sleep 1
cd /usr/local/home/game/channel2/channel2_2
./game &
sleep 1
cd /usr/local/home/game/channel2/channel2_3
./game &
sleep 1
cd /usr/local/home/game/channel3/channel3_1
./game &
sleep 1
cd /usr/local/home/game/channel3/channel3_2
./game &
sleep 1
cd /usr/local/home/game/channel3/channel3_3
./game &
sleep 1
cd /usr/local/home/game/game99/
./game &
elif [ "$a" = "4" ]
then
cd /usr/local/home/game/g1/db/
./db &
sleep 1
cd /usr/local/home/game/auth
./auth &
sleep 1
cd /usr/local/home/game/channel1/core1
./game &
sleep 1
cd /usr/local/home/game/channel1/core2
./game &
sleep 1
cd /usr/local/home/game/channel1/core3
./game &
sleep 1
cd /usr/local/home/game/channel2/channel2_1
./game &
sleep 1
cd /usr/local/home/game/channel2/channel2_2
./game &
sleep 1
cd /usr/local/home/game/channel2/channel2_3
./game &
sleep 1
cd /usr/local/home/game/channel3/channel3_1
./game &
sleep 1
cd /usr/local/home/game/channel3/channel3_2
./game &
sleep 1
cd /usr/local/home/game/channel3/channel3_3
./game &
sleep 1
cd /usr/local/home/game/channel4/channel4_1
./game &
sleep 1
cd /usr/local/home/game/channel4/channel4_2
./game &
sleep 1
cd /usr/local/home/game/channel4/channel4_3
./game &
sleep 1
cd /usr/local/home/game/game99/
./game &
fi
sleep 2
clear
echo -e "\033[32m \n Server ONLINE\033[0m"