I'm a little confused by the config script. Why does it need my sgminer settings? All I want the script for is to reboot the machine now and again if a card goes sick, once it has rebooted, it's already set up to restart mining automatically so I don't need the script to do anything else. Can I just leave these settings blank, or comment them out? Same with the primary pool settings.
To get that behavior, you can comment out these two lines to disable mining:
catch {exec /bin/bash -c $exec_cmd} out
catch {exec su $conf(mining_user) -c /bin/bash -c $exec_cmd} out
Make sure this is set to the correct name of your mining program:
set conf(cgminer_exec) "cgminer"
The other settings can probably be left as is, or blank.