Crontab Bandwidth limits for amule


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #!/bin/bash
  2. #
  3. # amule-worktime
  4. # author: Gilmar Pupo <[email protected]>
  5. # save this file on /usr/bin/amule-worktime ( sudo cp amule-worktime /usr/bin/ )
  6. # Set your crontab:
  7. # m h dom mon dow command
  8. # 1 18 * * * /usr/bin/amule-worktime out
  9. # 50 7 * * * /usr/bin/amule-worktime in
  10. #
  11.  
  12.  
  13. echo "Usage: amule-worktime out|in"
  14. if [ $1 == 'in' ]; then
  15. amulecmd --command="set bwlimit Up 1";
  16. else
  17. amulecmd --command="set bwlimit Up 10";
  18. amulecmd --command="set bwlimit Down 1024";
  19. fi

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.