Cod: Selectaţi tot
#!/bin/sh
echo -e "\033[31m
Metin2 2004! \n
1 - (1) Porneste 1 CH-2core.\n
2 - (2) Porneste CH1,CH2 - ALL.\n
\033[0m"
read chs
case $chs in
1*)
echo -e "\033[31m Se porneste Baza de date..\033[0m"
cd /usr/home/game/db/ && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste Auth ..\033[0m"
cd /usr/home/game/auth && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 1 core x2 ..\033[0m"
cd /usr/home/game/channel1/core1 && sh run.sh & sleep 1
clear
cd /usr/home/game/channel1/core2 && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 99 ..\033[0m"
cd /usr/home/game/game99/ && sh run.sh & sleep 1
clear
echo -e "\033[32m \n CH1 este pornit astapta 10 secunde!\033[0m"
;;
2*)
echo -e "\033[31m Se porneste Baza de date ..\033[0m"
cd /usr/home/game/db/ && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste Auth ..\033[0m"
cd /usr/home/game/auth && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 1 core x2 ..\033[0m"
cd /usr/home/game/channel1/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel1/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 2 core x2 ..\033[0m"
cd /usr/home/game/channel2/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel2/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/game99/
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[32m \n Ch1 Si Ch2 Au fost Pornite astapta 30 secunde!\033[0m"
;;
3*)
echo -e "\033[31m Se porneste Baza de date ..\033[0m"
cd /usr/home/game/db/ && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste Auth ..\033[0m"
cd /usr/home/game/auth && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 1 core x2 ..\033[0m"
cd /usr/home/game/channel1/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel1/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 2 core x2 ..\033[0m"
cd /usr/home/game/channel2/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel2/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 3 core x2 ..\033[0m"
cd /usr/home/game/channel3/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel3/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/game99/
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[32m \n Ch1 Si Ch2 Si ch3 Au fost Pornite astapta 30 secunde!\033[0m"
;;
4*)
echo -e "\033[31m Se porneste Baza de date ..\033[0m"
cd /usr/home/game/db/ && sh run.sh & sleep 1
sleep 2
clear
echo -e "\033[31m \n Se porneste Auth ..\033[0m"
cd /usr/home/game/auth && sh run.sh & sleep 1
sleep 2
clear
echo -e "\033[31m \n Se porneste CH 1 core x2 ..\033[0m"
cd /usr/home/game/channel1/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel1/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 2 core x2 ..\033[0m"
cd /usr/home/game/channel2/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel2/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 3 core x2 ..\033[0m"
cd /usr/home/game/channel3/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel3/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 4 core x2 ..\033[0m"
cd /usr/home/game/channel4/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel4/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[31m \n Se porneste CH 5 core x2 ..\033[0m"
cd /usr/home/game/channel5/core1
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/channel5/core2
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
cd /usr/home/game/game99/
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
clear
echo -e "\033[32m \n Ch1,Ch2,Ch3,Ch4,Ch5 Au fost Pornite astapta 40 secunde!\033[0m"
;;
esac

