Skip to content

Commit e1c6923

Browse files
authored
Add files via upload
1 parent ea336e1 commit e1c6923

14 files changed

+126
-28
lines changed

Bmnrautorun.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd "%~dp0"
55
SETLOCAL EnableExtensions EnableDelayedExpansion
66
MODE CON cols=70 lines=40
77
shutdown.exe /A 2>NUL 1>&2
8-
SET ver=2.1.9
8+
SET ver=2.2.0
99
SET mn=Bmnr
1010
SET firstrun=0
1111
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
@@ -44,6 +44,7 @@ SET restartminer=48
4444
SET restartpc=0
4545
SET noonrestart=0
4646
SET midnightrestart=0
47+
SET afterstarttimeout=0
4748
SET internetcheck=1
4849
SET tempcheck=0
4950
SET globaltempcheck=1
@@ -99,7 +100,7 @@ IF NOT EXIST "%config%" (
99100
GOTO createconfig
100101
)
101102
FOR /F "eol=# delims=" %%a IN (%config%) DO SET "%%a"
102-
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103+
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart afterstarttimeout internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103104
FOR /F "eol=# delims=" %%A IN ('findstr.exe /R /C:"commandserver.*" %config%') DO SET /A serversamount+=1
104105
FOR /L %%A IN (1,1,%serversamount%) DO (
105106
FOR %%B IN (commandserver%%A) DO IF NOT DEFINED %%B GOTO corruptedconfig
@@ -169,6 +170,8 @@ IF %octimeout% EQU 120 IF %gpus% GEQ 1 SET /A octimeout=%gpus%*15
169170
>> %config% ECHO noonrestart=%noonrestart%
170171
>> %config% ECHO # Restart miner or computer every day at 00:00. [1 - true miner, 2 - true computer, 0 - false]
171172
>> %config% ECHO midnightrestart=%midnightrestart%
173+
>> %config% ECHO # Timeout after miner was started [min value - 1 sec]
174+
>> %config% ECHO afterstarttimeout=%afterstarttimeout%
172175
>> %config% ECHO # =================================================== [Other]
173176
>> %config% ECHO # Enable Internet connectivity check. [0 - false, 1 - true full, 2 - true without server switching]
174177
>> %config% ECHO # Disable Internet connectivity check only if you have difficulties with your connection. [ie. high latency, intermittent connectivity]
@@ -399,6 +402,10 @@ START "%bat%" "%bat%" && (
399402
)
400403
IF %lauchocprogram% EQU 1 CALL :oclauch
401404
IF %additionalprofile% GEQ 1 IF %additionalprofile% LEQ 5 IF !secondoclaunch! EQU 1 CALL :oclauch
405+
IF %afterstarttimeout% GEQ 1 (
406+
ECHO Please wait %afterstarttimeout% seconds or press any key to continue...
407+
timeout.exe /T %afterstarttimeout% >NUL
408+
)
402409
IF NOT DEFINED curservername SET curservername=unknown
403410
IF NOT EXIST "%log%" (
404411
findstr.exe /R /C:".*-logfile %log%.*" %bat% 2>NUL 1>&2 || (

CCautorun.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd "%~dp0"
55
SETLOCAL EnableExtensions EnableDelayedExpansion
66
MODE CON cols=70 lines=40
77
shutdown.exe /A 2>NUL 1>&2
8-
SET ver=2.1.9
8+
SET ver=2.2.0
99
SET mn=Cmnr
1010
SET firstrun=0
1111
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
@@ -44,6 +44,7 @@ SET restartminer=48
4444
SET restartpc=0
4545
SET noonrestart=0
4646
SET midnightrestart=0
47+
SET afterstarttimeout=0
4748
SET internetcheck=1
4849
SET tempcheck=0
4950
SET globaltempcheck=1
@@ -102,7 +103,7 @@ IF NOT EXIST "%config%" (
102103
GOTO createconfig
103104
)
104105
FOR /F "eol=# delims=" %%a IN (%config%) DO SET "%%a"
105-
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
106+
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart afterstarttimeout internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
106107
FOR /F "eol=# delims=" %%A IN ('findstr.exe /R /C:"commandserver.*" %config%') DO SET /A serversamount+=1
107108
FOR /L %%A IN (1,1,%serversamount%) DO (
108109
FOR %%B IN (commandserver%%A) DO IF NOT DEFINED %%B GOTO corruptedconfig
@@ -172,6 +173,8 @@ IF %octimeout% EQU 120 IF %gpus% GEQ 1 SET /A octimeout=%gpus%*15
172173
>> %config% ECHO noonrestart=%noonrestart%
173174
>> %config% ECHO # Restart miner or computer every day at 00:00. [1 - true miner, 2 - true computer, 0 - false]
174175
>> %config% ECHO midnightrestart=%midnightrestart%
176+
>> %config% ECHO # Timeout after miner was started [min value - 1 sec]
177+
>> %config% ECHO afterstarttimeout=%afterstarttimeout%
175178
>> %config% ECHO # =================================================== [Other]
176179
>> %config% ECHO # Enable Internet connectivity check. [0 - false, 1 - true full, 2 - true without server switching]
177180
>> %config% ECHO # Disable Internet connectivity check only if you have difficulties with your connection. [ie. high latency, intermittent connectivity]
@@ -409,6 +412,10 @@ START "%bat%" "%bat%" && (
409412
)
410413
IF %lauchocprogram% EQU 1 CALL :oclauch
411414
IF %additionalprofile% GEQ 1 IF %additionalprofile% LEQ 5 IF !secondoclaunch! EQU 1 CALL :oclauch
415+
IF %afterstarttimeout% GEQ 1 (
416+
ECHO Please wait %afterstarttimeout% seconds or press any key to continue...
417+
timeout.exe /T %afterstarttimeout% >NUL
418+
)
412419
IF NOT DEFINED curservername SET curservername=unknown
413420
IF NOT EXIST "%log%" (
414421
CALL :inform "1" "false" "%log% is missing. Ensure *^>^> %log% 2^>^&1* option is added to the miners command line in *%config%* file." "%log% is missing. Ensure ^>^> %log% 2^>^&1 option is added to the miners command line in %config% file." "2"

Castautorun.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd "%~dp0"
55
SETLOCAL EnableExtensions EnableDelayedExpansion
66
MODE CON cols=70 lines=40
77
shutdown.exe /A 2>NUL 1>&2
8-
SET ver=2.1.9
8+
SET ver=2.2.0
99
SET mn=Cast
1010
SET firstrun=0
1111
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
@@ -44,6 +44,7 @@ SET restartminer=48
4444
SET restartpc=0
4545
SET noonrestart=0
4646
SET midnightrestart=0
47+
SET afterstarttimeout=0
4748
SET internetcheck=1
4849
SET tempcheck=0
4950
SET globaltempcheck=1
@@ -99,7 +100,7 @@ IF NOT EXIST "%config%" (
99100
GOTO createconfig
100101
)
101102
FOR /F "eol=# delims=" %%a IN (%config%) DO SET "%%a"
102-
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103+
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart afterstarttimeout internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103104
FOR /F "eol=# delims=" %%A IN ('findstr.exe /R /C:"commandserver.*" %config%') DO SET /A serversamount+=1
104105
FOR /L %%A IN (1,1,%serversamount%) DO (
105106
FOR %%B IN (commandserver%%A) DO IF NOT DEFINED %%B GOTO corruptedconfig
@@ -169,6 +170,8 @@ IF %octimeout% EQU 120 IF %gpus% GEQ 1 SET /A octimeout=%gpus%*15
169170
>> %config% ECHO noonrestart=%noonrestart%
170171
>> %config% ECHO # Restart miner or computer every day at 00:00. [1 - true miner, 2 - true computer, 0 - false]
171172
>> %config% ECHO midnightrestart=%midnightrestart%
173+
>> %config% ECHO # Timeout after miner was started [min value - 1 sec]
174+
>> %config% ECHO afterstarttimeout=%afterstarttimeout%
172175
>> %config% ECHO # =================================================== [Other]
173176
>> %config% ECHO # Enable Internet connectivity check. [0 - false, 1 - true full, 2 - true without server switching]
174177
>> %config% ECHO # Disable Internet connectivity check only if you have difficulties with your connection. [ie. high latency, intermittent connectivity]
@@ -399,6 +402,10 @@ START "%bat%" "%bat%" && (
399402
)
400403
IF %lauchocprogram% EQU 1 CALL :oclauch
401404
IF %additionalprofile% GEQ 1 IF %additionalprofile% LEQ 5 IF !secondoclaunch! EQU 1 CALL :oclauch
405+
IF %afterstarttimeout% GEQ 1 (
406+
ECHO Please wait %afterstarttimeout% seconds or press any key to continue...
407+
timeout.exe /T %afterstarttimeout% >NUL
408+
)
402409
IF NOT DEFINED curservername SET curservername=unknown
403410
IF NOT EXIST "%log%" (
404411
findstr.exe /R /C:".*--log %log%.*" %bat% 2>NUL 1>&2 || (

ClayETHautorun.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd "%~dp0"
55
SETLOCAL EnableExtensions EnableDelayedExpansion
66
MODE CON cols=70 lines=40
77
shutdown.exe /A 2>NUL 1>&2
8-
SET ver=2.1.9
8+
SET ver=2.2.0
99
SET mn=Clay
1010
SET firstrun=0
1111
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
@@ -44,6 +44,7 @@ SET restartminer=48
4444
SET restartpc=0
4545
SET noonrestart=0
4646
SET midnightrestart=0
47+
SET afterstarttimeout=0
4748
SET internetcheck=1
4849
SET tempcheck=0
4950
SET globaltempcheck=1
@@ -99,7 +100,7 @@ IF NOT EXIST "%config%" (
99100
GOTO createconfig
100101
)
101102
FOR /F "eol=# delims=" %%a IN (%config%) DO SET "%%a"
102-
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103+
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart afterstarttimeout internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103104
FOR /F "eol=# delims=" %%A IN ('findstr.exe /R /C:"commandserver.*" %config%') DO SET /A serversamount+=1
104105
FOR /L %%A IN (1,1,%serversamount%) DO (
105106
FOR %%B IN (commandserver%%A) DO IF NOT DEFINED %%B GOTO corruptedconfig
@@ -169,6 +170,8 @@ IF %octimeout% EQU 120 IF %gpus% GEQ 1 SET /A octimeout=%gpus%*15
169170
>> %config% ECHO noonrestart=%noonrestart%
170171
>> %config% ECHO # Restart miner or computer every day at 00:00. [1 - true miner, 2 - true computer, 0 - false]
171172
>> %config% ECHO midnightrestart=%midnightrestart%
173+
>> %config% ECHO # Timeout after miner was started [min value - 1 sec]
174+
>> %config% ECHO afterstarttimeout=%afterstarttimeout%
172175
>> %config% ECHO # =================================================== [Other]
173176
>> %config% ECHO # Enable Internet connectivity check. [0 - false, 1 - true full, 2 - true without server switching]
174177
>> %config% ECHO # Disable Internet connectivity check only if you have difficulties with your connection. [ie. high latency, intermittent connectivity]
@@ -399,6 +402,10 @@ START "%bat%" "%bat%" && (
399402
)
400403
IF %lauchocprogram% EQU 1 CALL :oclauch
401404
IF %additionalprofile% GEQ 1 IF %additionalprofile% LEQ 5 IF !secondoclaunch! EQU 1 CALL :oclauch
405+
IF %afterstarttimeout% GEQ 1 (
406+
ECHO Please wait %afterstarttimeout% seconds or press any key to continue...
407+
timeout.exe /T %afterstarttimeout% >NUL
408+
)
402409
IF NOT DEFINED curservername SET curservername=unknown
403410
IF NOT EXIST "%log%" (
404411
findstr.exe /R /C:".*-logfile %log%.*" %bat% 2>NUL 1>&2 || (

ClayNSautorun.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd "%~dp0"
55
SETLOCAL EnableExtensions EnableDelayedExpansion
66
MODE CON cols=70 lines=40
77
shutdown.exe /A 2>NUL 1>&2
8-
SET ver=2.1.9
8+
SET ver=2.2.0
99
SET mn=Clay
1010
SET firstrun=0
1111
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
@@ -44,6 +44,7 @@ SET restartminer=48
4444
SET restartpc=0
4545
SET noonrestart=0
4646
SET midnightrestart=0
47+
SET afterstarttimeout=0
4748
SET internetcheck=1
4849
SET tempcheck=0
4950
SET globaltempcheck=1
@@ -99,7 +100,7 @@ IF NOT EXIST "%config%" (
99100
GOTO createconfig
100101
)
101102
FOR /F "eol=# delims=" %%a IN (%config%) DO SET "%%a"
102-
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103+
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart afterstarttimeout internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103104
FOR /F "eol=# delims=" %%A IN ('findstr.exe /R /C:"commandserver.*" %config%') DO SET /A serversamount+=1
104105
FOR /L %%A IN (1,1,%serversamount%) DO (
105106
FOR %%B IN (commandserver%%A) DO IF NOT DEFINED %%B GOTO corruptedconfig
@@ -169,6 +170,8 @@ IF %octimeout% EQU 120 IF %gpus% GEQ 1 SET /A octimeout=%gpus%*15
169170
>> %config% ECHO noonrestart=%noonrestart%
170171
>> %config% ECHO # Restart miner or computer every day at 00:00. [1 - true miner, 2 - true computer, 0 - false]
171172
>> %config% ECHO midnightrestart=%midnightrestart%
173+
>> %config% ECHO # Timeout after miner was started [min value - 1 sec]
174+
>> %config% ECHO afterstarttimeout=%afterstarttimeout%
172175
>> %config% ECHO # =================================================== [Other]
173176
>> %config% ECHO # Enable Internet connectivity check. [0 - false, 1 - true full, 2 - true without server switching]
174177
>> %config% ECHO # Disable Internet connectivity check only if you have difficulties with your connection. [ie. high latency, intermittent connectivity]
@@ -399,6 +402,10 @@ START "%bat%" "%bat%" && (
399402
)
400403
IF %lauchocprogram% EQU 1 CALL :oclauch
401404
IF %additionalprofile% GEQ 1 IF %additionalprofile% LEQ 5 IF !secondoclaunch! EQU 1 CALL :oclauch
405+
IF %afterstarttimeout% GEQ 1 (
406+
ECHO Please wait %afterstarttimeout% seconds or press any key to continue...
407+
timeout.exe /T %afterstarttimeout% >NUL
408+
)
402409
IF NOT DEFINED curservername SET curservername=unknown
403410
IF NOT EXIST "%log%" (
404411
findstr.exe /R /C:".*-logfile %log%.*" %bat% 2>NUL 1>&2 || (

ClayXMRautorun.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pushd "%~dp0"
55
SETLOCAL EnableExtensions EnableDelayedExpansion
66
MODE CON cols=70 lines=40
77
shutdown.exe /A 2>NUL 1>&2
8-
SET ver=2.1.9
8+
SET ver=2.2.0
99
SET mn=Clay
1010
SET firstrun=0
1111
FOR /F "tokens=1 delims=." %%A IN ('wmic.exe OS GET localdatetime^|Find "."') DO SET dt0=%%A
@@ -44,6 +44,7 @@ SET restartminer=48
4444
SET restartpc=0
4545
SET noonrestart=0
4646
SET midnightrestart=0
47+
SET afterstarttimeout=0
4748
SET internetcheck=1
4849
SET tempcheck=0
4950
SET globaltempcheck=1
@@ -99,7 +100,7 @@ IF NOT EXIST "%config%" (
99100
GOTO createconfig
100101
)
101102
FOR /F "eol=# delims=" %%a IN (%config%) DO SET "%%a"
102-
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103+
FOR %%A IN (gpus gpurestart hashrate commandserver1 ocprogram profile additionalprofile octimeout restartocprogram lauchocprogram restartminer restartpc noonrestart noonrestart midnightrestart afterstarttimeout internetcheck tempcheck globaltempcheck environments sharetimeout runtimeerrors hashrateerrors minerprocess minerpath bat pingserver cputimeout rigname groupname link chatid reports ap approcessname approcesspath) DO IF NOT DEFINED %%A GOTO corruptedconfig
103104
FOR /F "eol=# delims=" %%A IN ('findstr.exe /R /C:"commandserver.*" %config%') DO SET /A serversamount+=1
104105
FOR /L %%A IN (1,1,%serversamount%) DO (
105106
FOR %%B IN (commandserver%%A) DO IF NOT DEFINED %%B GOTO corruptedconfig
@@ -169,6 +170,8 @@ IF %octimeout% EQU 120 IF %gpus% GEQ 1 SET /A octimeout=%gpus%*15
169170
>> %config% ECHO noonrestart=%noonrestart%
170171
>> %config% ECHO # Restart miner or computer every day at 00:00. [1 - true miner, 2 - true computer, 0 - false]
171172
>> %config% ECHO midnightrestart=%midnightrestart%
173+
>> %config% ECHO # Timeout after miner was started [min value - 1 sec]
174+
>> %config% ECHO afterstarttimeout=%afterstarttimeout%
172175
>> %config% ECHO # =================================================== [Other]
173176
>> %config% ECHO # Enable Internet connectivity check. [0 - false, 1 - true full, 2 - true without server switching]
174177
>> %config% ECHO # Disable Internet connectivity check only if you have difficulties with your connection. [ie. high latency, intermittent connectivity]
@@ -399,6 +402,10 @@ START "%bat%" "%bat%" && (
399402
)
400403
IF %lauchocprogram% EQU 1 CALL :oclauch
401404
IF %additionalprofile% GEQ 1 IF %additionalprofile% LEQ 5 IF !secondoclaunch! EQU 1 CALL :oclauch
405+
IF %afterstarttimeout% GEQ 1 (
406+
ECHO Please wait %afterstarttimeout% seconds or press any key to continue...
407+
timeout.exe /T %afterstarttimeout% >NUL
408+
)
402409
IF NOT DEFINED curservername SET curservername=unknown
403410
IF NOT EXIST "%log%" (
404411
findstr.exe /R /C:".*-logfile %log%.*" %bat% 2>NUL 1>&2 || (

0 commit comments

Comments
 (0)