mrdkoid brzda.sh
  1. #!/bin/sh
  2.  
  3. PAY="/root/payment"
  4.  
  5. if [ -f $PAY ] && [ "$(cat $PAY)" == "ok" ]
  6. then
  7. wondershaper eth0 300 1800
  8. elif [ -f $PAY ] && [ "$(cat $PAY)" != "ok" ]
  9. then
  10. wondershaper eth0 256 256
  11. else
  12. echo "Soubor payment neexistuje ..."
  13. fi
  14.  
Parsed in 0.003 seconds