Add script to clean cgminer config
This commit is contained in:
24
fix_config.sh
Executable file
24
fix_config.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
# Clean cgminer config for SHA256
|
||||
|
||||
CONF="/opt/necrohash/cgminer.conf"
|
||||
|
||||
cat <<EOF > "$CONF"
|
||||
{
|
||||
"pools": [
|
||||
{
|
||||
"url": "stratum+tcp://solo.ckpool.org:3333",
|
||||
"user": "144N35t62x8qC21eQ8qW2q2q2q2q2q2q2q",
|
||||
"pass": "x"
|
||||
}
|
||||
],
|
||||
"api-listen": true,
|
||||
"api-allow": "W:127.0.0.1",
|
||||
"gridseed-options": "freq=850,chips=5",
|
||||
"kernel-path": "/usr/local/bin"
|
||||
}
|
||||
EOF
|
||||
|
||||
chown pi:pi "$CONF"
|
||||
chmod 644 "$CONF"
|
||||
echo "Config cleaned."
|
||||
Reference in New Issue
Block a user