brzda netu pro mrdkoid
  1. #!/bin/sh
  2.  
  3. PAY="/home/user/payment"
  4.  
  5. if [ -f $PAY ] && [ "$(cat $PAY)" == "ok" ]
  6. then
  7. wondershaper eth0 1000 2000
  8. echo "je to ok pico"
  9. elif [ -f $PAY ] && [ "$(cat $PAY)" != "ok" ]
  10. then
  11. wondershaper eth0 200 200
  12. echo "neni to ok pico"
  13. else
  14. echo "nenÝ soubor vole"
  15. fi
Parsed in 0.004 seconds