Legare lib de start.sh

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
mihai00123
Utilizator interzis !

Utilizator interzis !
Mesaje: 347
Membru din: 24 Ian 2017, 17:29
Server: metin2alaska
Regat: Shinsoo
Aprecieri: 8  
Mulţumiri: 0
Medalii

Salut, am si eu un lib in cd /usr/home/game/share cu numele metin2.so, si vreau sa ma ajutati sa-l leg de start.sh, adica lib-ul sa porneasca odata cu start.sh

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
Avatar utilizator
mihai00123
Utilizator interzis !

Utilizator interzis !
Mesaje: 347
Membru din: 24 Ian 2017, 17:29
Server: metin2alaska
Regat: Shinsoo
Aprecieri: 8  
Mulţumiri: 0
Medalii

upp
Avatar utilizator
jwdok
Nivel 2

Nivel 2
Mesaje: 238
Membru din: 20 Aug 2014, 22:53
Server: www.Metin2Avatar.com
Regat: Chunjo
Aprecieri: 11  
Mulţumiri: 37  
Medalii

Salut,ai facute legaturile vad in start.sh
Urmareste cand dai start in puty daca pleaca libu
Avatar utilizator
mihai00123
Utilizator interzis !

Utilizator interzis !
Mesaje: 347
Membru din: 24 Ian 2017, 17:29
Server: metin2alaska
Regat: Shinsoo
Aprecieri: 8  
Mulţumiri: 0
Medalii

jwdok scrie:Salut,ai facute legaturile vad in start.sh
Urmareste cand dai start in puty daca pleaca libu
nu am facut
Avatar utilizator
jwdok
Nivel 2

Nivel 2
Mesaje: 238
Membru din: 20 Aug 2014, 22:53
Server: www.Metin2Avatar.com
Regat: Chunjo
Aprecieri: 11  
Mulţumiri: 37  
Medalii

Tu ai 2 start.sh.ai 1 modificat (scos lib din el) si ai start sh cu lib
Legatura la lib e asta..
env LD_32_PRELOAD="/usr/home/game/share/metin2.so" && sh run.sh & sleep 1
Avatar utilizator
Moț
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 2825
Membru din: 03 Apr 2017, 15:00
Aprecieri: 216  
Mulţumiri: 3040  
Discord: Copiază ID
Medalii

Arhivat!
Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
173
Răspunsuri
6
Vizualizări
643
Răspunsuri
0
Vizualizări
261

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Bing [Bot] și 129 vizitatori