Scripting multiple cgminer processes / running on a router
That's an interesting approach. It's probably cheaper than a Raspberry Pi.


Put your startup script in a file:

./cgminer -o pool:port -u username.worker -p password --usb :$1


Save to start_single.sh, then

$ chmod u+x start_single.sh

Make the final script:

NUM_MINERS = 7
cd "$(dirname "$0")"
parallel -j $NUM_MINERS -- ./start_single.sh $(seq 1 $NUM_MINERS)


Save as start_all.sh, then

$ chmod u+x start_all.sh

Run ./start_all.sh to mine. 


If you want to start the script on startup, google 'TomatoUSB start program on startup'