22 lines
437 B
Python
Executable File
22 lines
437 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
import json
|
|
import os
|
|
|
|
|
|
def make_config():
|
|
|
|
with open("/sudois/xmrig/src/config.json", 'r') as f:
|
|
config = json.load(f)
|
|
|
|
config['donate-level'] = 0
|
|
config['http']['enabled'] = True
|
|
config['http']['port'] = 8013
|
|
config['pools'][0]['url'] = "POOL_HOST:POOL_PORT"
|
|
config['randomx']['1gb-pages'] = True
|
|
|
|
print(json.dumps(config,indent=2))
|
|
|
|
if __name__ == "__main__":
|
|
make_config()
|