Von phill, 4 Monate vorher, geschrieben in Bash.
Einbetten
  1. #!/bin/bash
  2.  
  3. #
  4. #   1)  apt-get install dos2unix
  5. #
  6. #   2)  install the backend:
  7. #                      wget -O /tmp/installautospeedtest https://cc1.at/installautospeedtest && dos2unix /tmp/installautospeedtest && bash /tmp/installautospeedtest && rm /tmp/installautospeedtest
  8. #
  9. #   3)  set a cronjob like:
  10. #                      40 * * * * /opt/knet/autospeedtest
  11. #
  12. #   4)  get the frontend end copy it to your webspace:
  13. #                      https://cc2.at/view/raw/252992ce  
  14. #
  15. #   5)  optional install speedtest-cli (if you don't have it):
  16. #                      https://cc2.at/view/2a08d4b9
  17. #
  18.  
  19.  
  20.  
  21.  
  22. mkdir /opt
  23. mkdir /opt/knet
  24. mkdir /opt/knet/speedtest
  25. wget -O /opt/knet/autospeedtest https://cc2.at/view/raw/5ed477ad
  26. dos2unix /opt/knet/autospeedtest
  27. chmod +x /opt/knet/autospeedtest
  28.  
  29. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/00.txt
  30. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/01.txt
  31. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/02.txt
  32. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/03.txt
  33. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/04.txt
  34. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/05.txt
  35. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/06.txt
  36. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/07.txt
  37. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/08.txt
  38. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/09.txt
  39. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/10.txt
  40. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/11.txt
  41. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/12.txt
  42. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/13.txt
  43. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/14.txt
  44. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/15.txt
  45. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/16.txt
  46. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/17.txt
  47. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/18.txt
  48. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/19.txt
  49. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/20.txt
  50. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/21.txt
  51. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/22.txt
  52. echo "https://cdn-sbg.kochinger.net/sf/images/nodata.jpeg" > /opt/knet/speedtest/23.txt
  53.