Return to Snippet

Revision: 31998
at September 17, 2010 00:26 by gpupo


Initial Code
#!/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

Initial URL


Initial Description


Initial Title
Crontab Bandwidth limits for amule

Initial Tags


Initial Language
Bash