/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash # # amule-worktime # author: Gilmar Pupo <[email protected]> # save this file on /usr/bin/amule-worktime ( sudo cp amule-worktime /usr/bin/ ) # Set your crontab: # m h dom mon dow command # 1 18 * * * /usr/bin/amule-worktime out # 50 7 * * * /usr/bin/amule-worktime in # echo "Usage: amule-worktime out|in" if [ $1 == 'in' ]; then amulecmd --command="set bwlimit Up 1"; else amulecmd --command="set bwlimit Up 10"; amulecmd --command="set bwlimit Down 1024"; fi