فهرست منبع

fixes #880

if no telnet password is set it sets one. This will cause the telnet login attempt to fail rather than stall.
Daniel Gibbs 9 سال پیش
والد
کامیت
73770c5696
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      lgsm/functions/command_stop.sh

+ 3 - 0
lgsm/functions/command_stop.sh

@@ -88,6 +88,9 @@ fn_stop_graceful_goldsource(){
 
 
 # Attempts graceful of 7 Days To Die using telnet.
 # Attempts graceful of 7 Days To Die using telnet.
 fn_stop_telnet_sdtd(){
 fn_stop_telnet_sdtd(){
+	if [ ! "${telnetpass}"]; then
+		telnetpass="NOTSET"
+	fi
 	sdtd_telnet_shutdown=$( expect -c '
 	sdtd_telnet_shutdown=$( expect -c '
 	proc abort {} {
 	proc abort {} {
 		puts "Timeout or EOF\n"
 		puts "Timeout or EOF\n"