2015-12-11 03:54:56 +00:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
|
|
|
|
|
|
|
<!DOCTYPE PLUGIN [
|
|
|
|
<!ENTITY name "speedtest">
|
|
|
|
<!ENTITY author "dmacias72">
|
2016-01-18 02:41:30 +00:00
|
|
|
<!ENTITY version "2016.01.17">
|
2015-12-21 00:45:00 +00:00
|
|
|
<!ENTITY launch "Tools/Speedtest">
|
2015-12-11 18:56:18 +00:00
|
|
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
2015-12-11 03:54:56 +00:00
|
|
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
|
|
|
<!ENTITY pkgURL "&gitURL;/source/packages">
|
2015-12-11 21:02:50 +00:00
|
|
|
<!ENTITY pkgs "/boot/packages">
|
2015-12-11 17:34:05 +00:00
|
|
|
<!ENTITY plgpath "/boot/config/plugins/&name;">
|
|
|
|
<!ENTITY plgname "&name;-&version;-x86_64-1">
|
2015-12-11 03:54:56 +00:00
|
|
|
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
|
|
|
]>
|
|
|
|
|
|
|
|
<PLUGIN name="&name;" author="&author;" launch="&launch;" version="&version;" pluginURL="&pluginURL;">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
This Plugin installs speedtest-cli for unRaid 6.1 All dependencies are installed as needed and is controlable from the webgui.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<CHANGES>
|
2016-01-18 02:41:30 +00:00
|
|
|
###2016.01.17
|
|
|
|
- remove symlink to speedtest-linux
|
2016-01-16 20:49:49 +00:00
|
|
|
###2016.01.16
|
|
|
|
- minor diplay changes
|
|
|
|
- add tablesorter as a separate package
|
2016-01-15 08:48:05 +00:00
|
|
|
###2016.01.15
|
|
|
|
- fix filter save
|
|
|
|
- add filter reset button
|
|
|
|
- add speedtest-linux command
|
2016-01-12 22:27:34 +00:00
|
|
|
###2016.01.12
|
|
|
|
- add checks for failed speedtest
|
2016-01-03 00:18:09 +00:00
|
|
|
###2016.01.02
|
|
|
|
- added tablesorter pager plugin
|
|
|
|
- fix tablesort css padding
|
|
|
|
- click on row to show share image
|
|
|
|
- save sort and filter settings
|
|
|
|
- added default cfg
|
2015-12-30 02:31:55 +00:00
|
|
|
###2015.12.29
|
|
|
|
- update tablesorter to v2.25.0 combined
|
|
|
|
- add tablesorter filters to table
|
|
|
|
- save speedtest host server
|
|
|
|
- add shadow box display when running speedtest
|
2015-12-21 00:45:00 +00:00
|
|
|
###2015.12.20a
|
|
|
|
- Added cron settings page
|
|
|
|
- Separated into proper webgui locations
|
|
|
|
- Speedtest settings under Settings
|
|
|
|
- Speedtest Cron Settings under Settings/Scheduler
|
|
|
|
- Speedtest App under Tools/Speedtest
|
2015-12-20 17:07:44 +00:00
|
|
|
###2015.12.20
|
|
|
|
- added speedtest-xml script to /usr/sbin/ for cron jobs
|
|
|
|
- added logging to speedtest.php for start and completion of the script
|
2015-12-20 08:58:44 +00:00
|
|
|
###2015.12.19
|
|
|
|
- changed icon thanks to hernandito
|
|
|
|
- convert to stand alone script for cron jobs
|
|
|
|
- rearrange setting page layout
|
|
|
|
- one click remove
|
2015-12-11 21:09:42 +00:00
|
|
|
###2015.12.11c
|
2015-12-11 17:07:55 +00:00
|
|
|
- update package name
|
2015-12-11 05:00:27 +00:00
|
|
|
- update install and remove scripts
|
2015-12-11 17:07:55 +00:00
|
|
|
###2015.12.10
|
2015-12-11 03:54:56 +00:00
|
|
|
- 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
|
|
|
|
</CHANGES>
|
|
|
|
|
2016-01-16 20:49:49 +00:00
|
|
|
<!--
|
|
|
|
The 'tablesorter' package file.
|
|
|
|
-->
|
|
|
|
<FILE Name="/boot/config/plugins/tablesorter/tablesorter-2016.01.16-x86_64-1.txz" Run="/sbin/upgradepkg --install-new">
|
|
|
|
<URL>&gitURL;/archive/tablesorter-2016.01.16-x86_64-1.txz</URL>
|
|
|
|
<MD5>139bbc7f9788339193ab9bd994365b4a</MD5>
|
|
|
|
</FILE>
|
2015-12-11 03:54:56 +00:00
|
|
|
|
|
|
|
<FILE Name="/boot/config/plugins/NerdPack/packages/python-2.7.9-x86_64-1.txz" Run="/sbin/upgradepkg --install-new">
|
|
|
|
<URL>https://raw.githubusercontent.com/eschultz/unraid6-nerdpack/master/packages/python-2.7.9-x86_64-1.txz</URL>
|
|
|
|
<MD5>7d5f6d12757c59e5f08ca25bd63aab78</MD5>
|
|
|
|
</FILE>
|
|
|
|
<FILE Name="&pkgs;/pyOpenSSL-0.15.1-x86_64-1_slack.txz" Run="/sbin/upgradepkg --install-new">
|
2015-12-11 21:09:42 +00:00
|
|
|
<URL>&pkgURL;/pyOpenSSL-0.15.1-x86_64-1_slack.txz</URL>
|
2015-12-11 03:54:56 +00:00
|
|
|
<MD5>b422874df919df6baa10774bd2ddc2cc</MD5>
|
|
|
|
</FILE>
|
|
|
|
<FILE Name="&pkgs;/pysetuptools-18.2-x86_64-2_slack.txz" Run="/sbin/upgradepkg --install-new">
|
2015-12-11 21:09:42 +00:00
|
|
|
<URL>&pkgURL;/pysetuptools-18.2-x86_64-2_slack.txz</URL>
|
2015-12-11 03:54:56 +00:00
|
|
|
<MD5>8cb67f040f55b152042752c85b8c68d6</MD5>
|
|
|
|
</FILE>
|
|
|
|
<FILE Name="&pkgs;/pip-7.1.2-x86_64-1_slack.txz" Run="/sbin/upgradepkg --install-new">
|
2015-12-11 21:09:42 +00:00
|
|
|
<URL>&pkgURL;/pip-7.1.2-x86_64-1_slack.txz</URL>
|
2015-12-11 03:54:56 +00:00
|
|
|
<MD5>1e0a8d9e281cd075c175eca86aea2130</MD5>
|
|
|
|
</FILE>
|
|
|
|
|
2016-01-18 02:08:50 +00:00
|
|
|
<FILE Name="&plgpath;/&name;.cfg">
|
2016-01-03 00:18:09 +00:00
|
|
|
<INLINE>
|
|
|
|
<![CDATA[
|
|
|
|
SECURE="no"
|
|
|
|
UNITS="bits"
|
|
|
|
SHARE="share"
|
|
|
|
LIST="auto"
|
|
|
|
SERVER=""
|
|
|
|
hour="3"
|
|
|
|
mode="2"
|
|
|
|
min="0"
|
|
|
|
]]>
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
2015-12-11 21:02:50 +00:00
|
|
|
<!--
|
|
|
|
The 'plugin' package file.
|
|
|
|
-->
|
|
|
|
<FILE Name="&plgpath;/&plgname;.txz">
|
|
|
|
<URL>&gitURL;/archive/&plgname;.txz</URL>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'plugin' package MD5 hash.
|
|
|
|
-->
|
|
|
|
<FILE Name="&plgpath;/&plgname;.md5">
|
|
|
|
<URL>&gitURL;/archive/&plgname;.md5</URL>
|
2015-12-11 03:54:56 +00:00
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'install' script.
|
|
|
|
-->
|
|
|
|
<FILE Run="/bin/bash">
|
2015-12-20 08:58:44 +00:00
|
|
|
<INLINE>
|
|
|
|
#Verify unRAID Version
|
|
|
|
source /etc/unraid-version
|
|
|
|
if [[ ${version:0:3} == 6.0 ]]; then
|
|
|
|
echo "unRAID version 6.1 or higher is required"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2015-12-11 03:54:56 +00:00
|
|
|
# Verify and install plugin package
|
2015-12-11 17:34:05 +00:00
|
|
|
sum1=$(/usr/bin/md5sum &plgpath;/&plgname;.txz)
|
|
|
|
sum2=$(/usr/bin/cat &plgpath;/&plgname;.md5)
|
2015-12-11 03:54:56 +00:00
|
|
|
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
|
|
|
echo "Wrong 'plugin' package md5 hash."
|
2015-12-11 17:34:05 +00:00
|
|
|
rm &plgpath;/&plgname;.txz
|
|
|
|
rm &plgpath;/&plgname;.md5
|
2015-12-11 03:54:56 +00:00
|
|
|
exit 1
|
|
|
|
else
|
2015-12-11 17:34:05 +00:00
|
|
|
upgradepkg --install-new &plgpath;/&plgname;.txz
|
2015-12-11 03:54:56 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
#upgrade pip and install speedtest-cli
|
|
|
|
pip install --upgrade pip
|
|
|
|
pip install speedtest-cli
|
2015-12-30 02:31:55 +00:00
|
|
|
pip install --upgrade &name;-cli
|
2015-12-11 03:54:56 +00:00
|
|
|
|
|
|
|
# Cleaning old source files
|
2015-12-11 21:02:50 +00:00
|
|
|
find &plgpath;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
|
|
|
find &plgpath;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete
|
2015-12-11 03:54:56 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo " &name; has been installed."
|
|
|
|
echo " This plugin requires Dynamix webGui to operate"
|
2016-01-10 10:20:03 +00:00
|
|
|
echo " Copyright 2016, &author;"
|
2015-12-11 03:54:56 +00:00
|
|
|
echo " Version: &version;"
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'remove' script.
|
|
|
|
-->
|
|
|
|
<FILE Run="/bin/bash" Method="remove">
|
|
|
|
<INLINE>
|
2015-12-11 17:34:05 +00:00
|
|
|
removepkg &plgpath;/&plgname;.txz
|
2015-12-11 04:41:43 +00:00
|
|
|
rm -rf &emhttp;
|
2015-12-11 17:34:05 +00:00
|
|
|
rm -f &plgpath;/&plgname;.txz
|
|
|
|
rm -f &plgpath;/&plgname;.md5
|
2015-12-11 03:54:56 +00:00
|
|
|
|
2015-12-21 00:45:00 +00:00
|
|
|
# Remove cron entry
|
|
|
|
rm -f /boot/config/plugins/dynamix/speedtest.cron
|
|
|
|
/usr/local/sbin/update_cron
|
|
|
|
|
2015-12-11 03:54:56 +00:00
|
|
|
echo ""
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo " &name; has been removed."
|
2016-01-10 10:20:03 +00:00
|
|
|
echo " Copyright 2016, &author;"
|
2015-12-11 03:54:56 +00:00
|
|
|
echo " Version: &version;"
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
</PLUGIN>
|