Every once in awhile my Antminer S1's will stop hashing.
...
3. type cd /bin
4. type vi hashcheck
5. type the following code (shown below in bold) into the vi editor
#!/bin/ash
var=$(cat /proc/loadavg | grep . | cut -c 1)
if [ $var -lt 1 ]
then
/sbin/reboot
else
fi
12. Under */3 * * * * /usr/bin/cgminer-monitor add the following on the next line */5 * * * * /usr/bin/hashcheck
great that you have used my line cat /proc/loadavg | grep . | cut -c 1
i mentioned in other thread
unfortunatelly script does not work
1)
you are creating file /bin/hashcheck not /usr/bin/hashcheck so reference in crontab should be modified
2)
Syntax error near unexpected token 'fi' is given when you are launching script by hand
it is becouse of line with "else", it is not needed.
3)
you have to change permissions to execute hashcheck file
to sum up:
point 3
type cd /bintype cd /usr/bin
point 5
elsepoint 5.5
chmod 775 /usr/bin/hashcheck
anyway thanks for great effort. my antminer just stopped hashing, i wrote your script and now it is hashing again