Thanks for this. I still spin up my S3 from time to time when I have extra solar spare.
When I run your executable on firmware 2015-01-09 I get: "BitmainAntS3: no bitmain-options specified"
Any ideas?
Edit: Sussed it. It's doesn't like the --version-file part of the script and the definitions for --antminer-options and --antminer-freq are different in your version to what public documentation and the antminer expects.
To fix, you need to alter the following lines in /etc/init.d/cgminer to:
AOPTIONS="--bitmain-freq $_freq"
PARAMS="--bitmain-options 115200:32:8 $AOPTIONS $POOL1 $POOL2 $POOL3 $_pb $_ow $_bec --api-listen --api-network --bitmain-checkn2diff --bitmain-hwerror --bitmain-voltage $_vl --queue 4096"
$APP --lowmem --bitmain-freq $_freq --bitmain-voltage $_vl -q >/dev/null 2>&1
...which seems to do the trick.