diff --git a/plugins/speedtest.plg b/plugins/speedtest.plg new file mode 100755 index 00000000..e76f4eed --- /dev/null +++ b/plugins/speedtest.plg @@ -0,0 +1,130 @@ + + + + + + + + + + + + + +]> + + + + + + +###2015.12.10 +- add date and time to table +- add switchbuttons +- update packages +###2015.10.19 +- typos +###2015.10.18b +- update to python 2.7.9 +###2015.10.18a +- update install script +###2015.10.17 +- initial commit + + + + +https://raw.githubusercontent.com/eschultz/unraid6-nerdpack/master/packages/python-2.7.9-x86_64-1.txz +7d5f6d12757c59e5f08ca25bd63aab78 + + +&pkgURL;pyOpenSSL-0.15.1-x86_64-1_slack.txz +b422874df919df6baa10774bd2ddc2cc + + +&pkgURL;pysetuptools-18.2-x86_64-2_slack.txz +8cb67f040f55b152042752c85b8c68d6 + + +&pkgURL;pip-7.1.2-x86_64-1_slack.txz +1e0a8d9e281cd075c175eca86aea2130 + + + + +&repo;/archive/&name;-&version;.txz + + + + +&repo;/archive/&name;-&version;.md5 + + + + + +# Verify and install plugin package +sum1=$(/usr/bin/md5sum &plugin;/&name;-&version;.txz) +sum2=$(/usr/bin/cat &plugin;/&name;-&version;.md5) +if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then + echo "Wrong 'plugin' package md5 hash." + rm &plugin;/&name;-&version;.txz + rm &plugin;/&name;-&version;.md5 + exit 1 +else + upgradepkg --install-new &plugin;/&name;-&version;.txz +fi + +# Create symlink to xml on flash drive +ln -sf &plugin;/&name;.xml &emhttp;/&name;.xml + +#upgrade pip and install speedtest-cli +pip install --upgrade pip +pip install speedtest-cli +pip install --upgrade speedtest-cli + +# Cleaning old source files +find /boot/config/plugins/&name;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete +find /boot/config/plugins/&name;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete + +echo "" +echo "-----------------------------------------------------------" +echo " &name; has been installed." +echo " This plugin requires Dynamix webGui to operate" +echo " Copyright 2015, &author;" +echo " Version: &version;" +echo "-----------------------------------------------------------" +echo "" + + + + + + +rm -rf &emhttp; +removepkg &plugin;/&name;-&version;.txz +rm -f &plugin;/&name;-&version;.txz +rm -f &plugin;/*.txz + +echo "" +echo "-----------------------------------------------------------" +echo " &name; has been removed." +echo " Copyright 2015, &author;" +echo " Version: &version;" +echo "-----------------------------------------------------------" +echo "" + + + +