remove
|
@ -1,145 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "aesir-plugin">
|
||||
<!ENTITY author "dmacias72, Kode">
|
||||
<!ENTITY version "2016.02.12a">
|
||||
<!ENTITY launch "Settings/Aesir">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master">
|
||||
<!ENTITY gitTAR "aesir-master.tar.gz">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY http "/srv/www/Aesir">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" launch="&launch;" version="&version;" pluginURL="&pluginURL;">
|
||||
|
||||
<!--
|
||||
This Plugin installs and controls Aesir webGUI for unRaid 6.1+ All dependencies are installed as needed and is controlable from the webgui.
|
||||
-->
|
||||
|
||||
<CHANGES>
|
||||
###2016.02.12a
|
||||
- move start and stop to rc.script
|
||||
- remove 1 min time limit on updates
|
||||
- move file permissions from plg to package doinst.sh
|
||||
###2016.02.06
|
||||
- fix events not executable
|
||||
- fix dockers not visible when running other than root
|
||||
- remove user selection
|
||||
###2016.02.05
|
||||
- initial commit
|
||||
</CHANGES>
|
||||
|
||||
|
||||
<!--
|
||||
git from github as tarball
|
||||
-->
|
||||
<FILE Name="&plgPATH;/&gitTAR;">
|
||||
<URL>"https://api.github.com/repos/linuxserver/Aesir/tarball/master"</URL>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/&name;.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
SERVICE="disable"
|
||||
DOCROOT="/mnt/cache/appdata/Aesir"
|
||||
PORT="8088"
|
||||
RUNAS="root"
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
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>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash">
|
||||
<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
|
||||
|
||||
# Verify and install plugin package
|
||||
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||
echo "Wrong 'plugin' package md5 hash."
|
||||
rm &plgPATH;/&plgNAME;.txz
|
||||
rm &plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
fi
|
||||
|
||||
# Cleaning old source files
|
||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||
find &plgPATH;/ -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 2016, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
/etc/rc.d/rc.aesir stop
|
||||
removepkg &plgPATH;/*.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz
|
||||
rm -f &plgPATH;/*.md5
|
||||
rm -f &plgPATH;/&gitTAR;
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2016, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="/tmp/aesir-plugin-chkconf" Run="/bin/bash">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
#!/bin/sh
|
||||
# This will check each entry in the config so nothing is missing, and if missing, sets to default
|
||||
CFGFILE=/boot/config/plugins/aesir-plugin/aesir-plugin.cfg
|
||||
[ ! `cat "$CFGFILE" | grep SERVICE` ] && echo "SERVICE=\"disable\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep DOCROOT` ] && echo "DOCROOT=\"/mnt/cache/appdata/Aesir\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep ^PORT` ] && echo "PORT=\"8088\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep RUNAS` ] && echo "RUNAS=\"root\"" >> "$CFGFILE"
|
||||
rm /tmp/aesir-plugin-chkconf
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
Before Width: | Height: | Size: 36 KiB |
|
@ -1,292 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "apache">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2017.01.28">
|
||||
<!ENTITY launch "Settings/WebServer">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" launch="&launch;" version="&version;" pluginURL="&pluginURL;" min="6.2">
|
||||
|
||||
<!--
|
||||
This Plugin installs and controls The Apache HTTP Server ("httpd") for unRaid 6.0 ONLY. All dependencies are installed as needed and is controlable from the webgui.
|
||||
-->
|
||||
|
||||
<CHANGES>
|
||||
##&name;
|
||||
###&version;
|
||||
- update apache to 2.4.25
|
||||
- update php extensions to 5.6.29
|
||||
- update libX11, libxcb, libXpm, net-snmp packages
|
||||
- fix: harfbuzz package for 6.3
|
||||
- harden code for XSS and CSRF vulnerabilities
|
||||
- minor code improvements
|
||||
###2016.10.26
|
||||
- fix: harfbuzz package for 6.2
|
||||
###2016.10.24
|
||||
- fix: docroot permissions on service start
|
||||
- add: browser based config editor for conf files and php.ini
|
||||
- add: search functions to editor
|
||||
- add: drop down list of users
|
||||
###2016.10.15
|
||||
- add: min and max version to plg
|
||||
- update php extensions to 5.6.26 match unRAID 6.3
|
||||
###2016.09.24
|
||||
- fix: apr and apr-util packages not installing
|
||||
- fix: clearing log files
|
||||
- add: restart button
|
||||
- add: missing dependencies for gd.so
|
||||
###2016.09.17a
|
||||
- fix: php.ini not being used
|
||||
- update php extensions to 5.6.24 match unRAID 6.2
|
||||
###2016.09.17
|
||||
- update plugin for 6.2 only
|
||||
###2015.09.07
|
||||
- fix start and stop scripts
|
||||
###2015.09.06
|
||||
- change image png
|
||||
- refomat code for markdown and dynamix inherent functions
|
||||
###2015.08.31
|
||||
- add full path to settings page POST script
|
||||
###2015.08.27
|
||||
- fix plugin remove script
|
||||
###2015.08.26
|
||||
- update extensions to php 5.4.44
|
||||
- updated for unRAID 6.1
|
||||
###2015.08.20
|
||||
- fix rc.apache symlink
|
||||
###2015.08.19
|
||||
- update apache to 2.4.16
|
||||
- update extentions to php 5.4.43
|
||||
- updates for unRAID 6.1-rc* only
|
||||
###2015.06.06
|
||||
- update to apache 2.4.12
|
||||
- update php extensions to 5.4.40
|
||||
- remove libpng and libjpeg packages will need to reboot
|
||||
###2015.05.22
|
||||
- condense code
|
||||
- use native v6 code and styling
|
||||
###2015.04.18
|
||||
- fix bugs
|
||||
- add version and link to webserver
|
||||
###2015.04.17
|
||||
- update extentions to php 5.4.36
|
||||
- added directory browser
|
||||
- reformatted layout
|
||||
###2015.01.31
|
||||
- update for beta12+
|
||||
###2014.09.25
|
||||
- fix install and remove scripts
|
||||
###2014.09.25
|
||||
- reformated github and plugin format
|
||||
- conf files will now be in /boot/config/plugins/apache/httpd
|
||||
###2014.06.07
|
||||
- initial commit
|
||||
</CHANGES>
|
||||
|
||||
<FILE Name="&plgPATH;/apr-1.5.2-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.2/apr-1.5.2-x86_64-1.txz</URL>
|
||||
<MD5>4076e8b7bd35e028b1cfb9224b51afc8</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/apr-util-1.5.4-x86_64-2.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.2/apr-util-1.5.4-x86_64-2.txz</URL>
|
||||
<MD5>4efea0ce9975635fe82ad0a6a079d1ca</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/freetype-2.6.5-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/freetype-2.6.5-x86_64-1.txz</URL>
|
||||
<MD5>60eb82ef3458130fc48f07e6f5035876</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/harfbuzz-1.3.0-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/harfbuzz-1.3.0-x86_64-1.txz</URL>
|
||||
<MD5>348c80202ce746b41557708bddf9c35b</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/httpd-2.4.25-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/httpd-2.4.25-x86_64-1.txz</URL>
|
||||
<MD5>ab4f1612c10531fce830aa1f562a9dd5</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libiodbc-3.52.10-x86_64-2.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libiodbc-3.52.10-x86_64-2.txz</URL>
|
||||
<MD5>5d62962db9add60780e184c76048d3d3</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libmcrypt-2.5.8-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libmcrypt-2.5.8-x86_64-1.txz</URL>
|
||||
<MD5>758bfc84d60a0d1bb8c1e51caaffe50f</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libtool-2.4.6-x86_64-4.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libtool-2.4.6-x86_64-4.txz</URL>
|
||||
<MD5>3a4d8446f6025bdc06f423d719f942e8</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libvpx-1.5.0-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libvpx-1.5.0-x86_64-1.txz</URL>
|
||||
<MD5>04ee011ea0510d961d121883930c2fda</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libX11-1.6.4-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libX11-1.6.4-x86_64-1.txz</URL>
|
||||
<MD5>2797d80dacb47bdb6f47cb6fd9b70268</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libXau-1.0.8-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libXau-1.0.8-x86_64-1.txz</URL>
|
||||
<MD5>b09a959ee01a1ea1d31600999b05dfef</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libxcb-1.12-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libxcb-1.12-x86_64-1.txz</URL>
|
||||
<MD5>1a318d5428928730e2a83ae1c8a135f5</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libXdmcp-1.1.2-x86_64-2.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libXdmcp-1.1.2-x86_64-2.txz</URL>
|
||||
<MD5>ce01ef3cc35262bb124d36e2f5c520c5</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libXpm-3.5.12-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libXpm-3.5.12-x86_64-1.txz</URL>
|
||||
<MD5>414f5b7fa9d4d51fca5ceb4c5b6c9b97</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/net-snmp-5.7.3-x86_64-4.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/net-snmp-5.7.3-x86_64-4.txz</URL>
|
||||
<MD5>b9ef68216b97cb5f0bcd9f3312e5941e</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/php-ext-5.6.24-x86_64-1.txz" Min="6.2" Max="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/php-ext-5.6.24-x86_64-1.txz</URL>
|
||||
<MD5>b83aefdaa0904deec56e00fc6dc5def5</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/php-ext-5.6.26-x86_64-1.txz" Min="6.2.1" Max="6.2.99" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/php-ext-5.6.26-x86_64-1.txz</URL>
|
||||
<MD5>6caeec1b7f8bf4c29baa27b63dd46891</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/php-ext-5.6.29-x86_64-1.txz" Min="6.3" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/php-ext-5.6.29-x86_64-1.txz</URL>
|
||||
<MD5>1a29d1eaa91a6e9b3e2741137b9563ec</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/t1lib-5.1.2-x86_64-3.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/t1lib-5.1.2-x86_64-3.txz</URL>
|
||||
<MD5>6942fb6f9f78b8e3cc4a1c77469a2512</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/&name;.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
# Apache Web Server configuration:
|
||||
SERVICE="disable"
|
||||
DOCROOT="/var/www/html"
|
||||
PORT="8088"
|
||||
RUNAS="nobody"
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/&name;-cert.sh">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
openssl req -new -x509 -keyout /boot/config/plugins/apache/server.crt -out /boot/config/plugins/apache/server.crt -days 365 -nodes; chmod 600 /boot/config/plugins/apache/server.crt
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
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>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash">
|
||||
<INLINE>
|
||||
#Verify unRAID Version
|
||||
source /etc/unraid-version
|
||||
VER=${version:0:3}
|
||||
|
||||
if [[ $VER == 6.1 ]]; then
|
||||
echo "unRAID version 6.2 or higher is required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify and install plugin package
|
||||
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||
echo "Wrong 'plugin' package md5 hash."
|
||||
rm &plgPATH;/&plgNAME;.txz
|
||||
rm &plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
|
||||
# Cleaning old source files
|
||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||
find &plgPATH;/ -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 2016-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
fi
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
/etc/rc.d/rc.apache stop
|
||||
removepkg &plgPATH;/&plgNAME;.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz \
|
||||
&plgPATH;/*.md5
|
||||
|
||||
#remove installed packages
|
||||
echo "Please wait, removing installed packages..."
|
||||
<![CDATA[
|
||||
removepkg /boot/config/plugins/apache/*.txz > /dev/null 2>&1
|
||||
rm -f /boot/config/plugins/apache/*.txz
|
||||
]]>
|
||||
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2016-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
</PLUGIN>
|
Before Width: | Height: | Size: 36 KiB |
|
@ -1,32 +0,0 @@
|
|||
{
|
||||
"ASRockRack": {
|
||||
"raw": "00 3a 01",
|
||||
"auto":"00 00 00 00 00 00 00 00",
|
||||
"full":"64 64 64 64 64 64 64 64",
|
||||
"fans": {
|
||||
"CPU_FAN1": "00",
|
||||
"CPU_FAN2": "00",
|
||||
"REAR_FAN1": "00",
|
||||
"REAR_FAN2": "00",
|
||||
"FRNT_FAN1": "00",
|
||||
"FRNT_FAN2": "00",
|
||||
"FRNT_FAN3": "00",
|
||||
"FRNT_FAN4": "00"
|
||||
}
|
||||
},
|
||||
"ASRock": {
|
||||
"raw":"00 3a 01",
|
||||
"auto":"00 00 00 00 00 00 00 00",
|
||||
"full":"64 64 64 64 64 64 64 64",
|
||||
"fans": {
|
||||
"CPU_FAN1": "00",
|
||||
"CPU_FAN2": "00",
|
||||
"REAR_FAN1": "00",
|
||||
"REAR_FAN2": "00",
|
||||
"FRNT_FAN1": "00",
|
||||
"FRNT_FAN2": "00",
|
||||
"FRNT_FAN3": "00",
|
||||
"FRNT_FAN4": "00"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,232 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "cmdline">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2017.05.21">
|
||||
<!ENTITY launch "Settings/CommandLineSettingsTabs">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" launch="&launch;" version="&version;" pluginURL="&pluginURL;">
|
||||
|
||||
<!--
|
||||
This Plugin installs and controls shellinabox for unRaid 6.1 All dependencies are installed as needed and is controlable from the webgui.
|
||||
-->
|
||||
|
||||
<CHANGES>
|
||||
##&name;
|
||||
###2017.05.21
|
||||
- fix screenfetch not added to bash profile
|
||||
###2017.02.05
|
||||
- update some code to jquery
|
||||
- add support link in readme
|
||||
###2017.01.28
|
||||
- update security for XSS and CSRF vulnerabilities
|
||||
- strip down screenfetch for slackware/unRAID
|
||||
- add unRAID version to screenshot
|
||||
###2017.01.22
|
||||
- update shellinabox unofficial to latest v2.20
|
||||
- add: security patches
|
||||
- fix: suppress var.ini parse error
|
||||
###2016.10.22
|
||||
- fix: ip connection for 6.2+
|
||||
- add: tabs for terminal and settings
|
||||
###2016.06.14
|
||||
- add: dynamix plugin update api
|
||||
- add: help content
|
||||
###2016.03.24
|
||||
- update shellinabox unofficial to pre 2.20
|
||||
- fix: https when ssl is enabled
|
||||
- remove linux-pam package
|
||||
###2016.03.11
|
||||
- add connect button on settings page
|
||||
- add setting button on tools page
|
||||
- rename plugin to cmdline since it is more than just shellinabox
|
||||
- fix: conform screenfetch OS: to 80 columns (remove brackets)
|
||||
- condense and restructure code
|
||||
###2016.02.20
|
||||
- fix: update plugin ovewriting home directory with saved
|
||||
###2016.02.11a
|
||||
- fix screenfetch error if emhttp/var.ini were not ready
|
||||
###2016.02.11
|
||||
- fix: chmod error
|
||||
- fix: shutdown not saving
|
||||
###2016.02.10
|
||||
- remove array event scripts and move to rc script
|
||||
- start and stop with system not array
|
||||
- add: choice for command line screenshot
|
||||
- add: choice to backup settings in root directory on shutdown
|
||||
- add: backup restore on reboot e.g. mc settings, bash history
|
||||
- add: selection of all users of group users for runas
|
||||
###2016.01.07c
|
||||
- add option to disable SSL
|
||||
###2016.01.07b
|
||||
- remove install cert button for now
|
||||
###2016.01.07a
|
||||
- fix cert link
|
||||
###2016.01.07
|
||||
- add ip address connection option
|
||||
- add install certificate button
|
||||
- fix starting service with changed settings not saving
|
||||
- default config file
|
||||
###2016.01.06
|
||||
- change package path to plugin directory
|
||||
- fix Tool/Command Line page
|
||||
- fix misspelled cfg file
|
||||
- fix default port 8088 to 4200
|
||||
###2015.12.30
|
||||
- remove old plugin directory on install
|
||||
###2015.12.21
|
||||
- move repo to unRAID-plugins
|
||||
- change plugin name to shellinabox-plugin
|
||||
- convert install and remove scripts
|
||||
- add package md5 and unRAID version check
|
||||
###2015.10.23
|
||||
- fix "no version information" log errors
|
||||
###2015.09.20
|
||||
- update shellinabox packages to unofficial 2.19 (revision e30c33d)
|
||||
- fix color styles
|
||||
###2015.09.07
|
||||
- fix start and stop scripts
|
||||
###2015.09.06
|
||||
- use markdown syntax and parse_plugin_cfg
|
||||
- change color styles
|
||||
###2015.09.05
|
||||
- fixed start event
|
||||
- add more color styles
|
||||
- fixed icon and image on black theme
|
||||
###2015.09.04
|
||||
- start and stop events
|
||||
- update run as user
|
||||
- update image
|
||||
###2015.09.03
|
||||
- initial commit
|
||||
</CHANGES>
|
||||
|
||||
|
||||
<FILE Name="&plgPATH;/shellinabox-2.20-x86_64-3.txz" Min="6.1" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/shellinabox-2.20-x86_64-3.txz</URL>
|
||||
<MD5>69dbef133f81930c16d0376b9dd39588</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/&name;.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
SERVICE="disable"
|
||||
SSL="disable"
|
||||
SCREEN="disable"
|
||||
BACKUP="disable"
|
||||
IPADDR="disable"
|
||||
PORT="4200"
|
||||
RUNAS="nobody"
|
||||
CERT="certificate.pem"
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
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>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash">
|
||||
<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
|
||||
|
||||
# Verify and install plugin package
|
||||
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||
echo "Wrong 'plugin' package md5 hash."
|
||||
rm &plgPATH;/&plgNAME;.txz
|
||||
rm &plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
# upgrade package
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
|
||||
# start shellinabox daemon
|
||||
/etc/rc.d/rc.shellinaboxd startup
|
||||
|
||||
# Cleaning old source files
|
||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||
find &plgPATH;/ -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-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
fi
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
# stop shellinabox daemon
|
||||
/etc/rc.d/rc.shellinaboxd shutdown
|
||||
|
||||
removepkg &plgPATH;/*.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz \
|
||||
&plgPATH;/*.md5
|
||||
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2015-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="/tmp/cmdline-chkconf" Run="/bin/bash">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
#!/bin/sh
|
||||
# This will check each entry in the config so nothing is missing, and if missing, sets to default
|
||||
CFGFILE=/boot/config/plugins/cmdline/cmdline.cfg
|
||||
[ ! `cat "$CFGFILE" | grep SERVICE` ] && echo "SERVICE=\"disable\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep SCREEN` ] && echo "SCREEN=\"disable\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep BACKUP` ] && echo "BACKUP=\"disable\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep SSL` ] && echo "SSL=\"disable\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep IPADDR` ] && echo "IPADDR=\"disable\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep ^PORT` ] && echo "PORT=\"4200\"" >> "$CFGFILE"
|
||||
[ ! `cat "$CFGFILE" | grep RUNAS` ] && echo "RUNAS=\"nobody\"" >> "$CFGFILE"
|
||||
rm /tmp/cmdline-chkconf
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
Before Width: | Height: | Size: 2.6 KiB |
390
plugins/ipmi.plg
|
@ -1,390 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "ipmi">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2016.10.24">
|
||||
<!ENTITY launch "Settings/IPMI">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
||||
|
||||
<CHANGES>
|
||||
##&name;
|
||||
###&version;
|
||||
- update codemirror for sensor and config editor
|
||||
- add: search and replace functions for config editor
|
||||
###2016.10.22
|
||||
- fix: min/max version in plugin
|
||||
###2016.10.19
|
||||
- fix: min/max version in plugin
|
||||
- fix: cached board status set add unknown
|
||||
###2016.10.17
|
||||
- fix: board not recognized and fancontrol disbaled
|
||||
###2016.10.12
|
||||
- fix: load kernel driver
|
||||
###2016.10.10
|
||||
- fix: plugin file
|
||||
###2016.10.09
|
||||
- fix: quiet modprobe
|
||||
- update for min/max and 6.3
|
||||
###2016.10.07a
|
||||
- fix: add padding to single digit percentage for fan log
|
||||
###2016.10.07
|
||||
- fix: fan page showing config missing for fan when it's not
|
||||
###2016.10.06a
|
||||
- fix: array_key_error on fans page
|
||||
###2016.10.06
|
||||
- add: update to freeipmi-1.5.3
|
||||
- add: automatic system specific configuration of ipmi fans for ASRock boards
|
||||
- fix: move boards.json to board.json
|
||||
- fix: cache board type to speed up settings page
|
||||
- fix: minor fixes, cleanup and remove depreciated code
|
||||
- fix: css affecting dashboard
|
||||
- fix: unRaid 6.3 compatibility
|
||||
###2016.09.29
|
||||
- fix: remove quotes from OEM Reserved readings
|
||||
###2016.09.28a
|
||||
- add: show readings for OEM Reserved in dashboard
|
||||
- add: ability to select OEM Reserved to display in footer
|
||||
###2016.09.28
|
||||
- add: show readings for OEM Reserved e.g. Supermicro temp readings
|
||||
- fix: hard drives reading showing 0 when spun down
|
||||
###2016.09.20
|
||||
- fix: inaccurate error when running fancontrol while disabled
|
||||
###2016.09.16
|
||||
- update tablesorter to 2.27.6
|
||||
###2016.07.22
|
||||
- fix: fan control not setting fans to auto when stopped
|
||||
- fix: fan control not setting fan min (only setting a value of 1)
|
||||
- fix: fan log percentage 0% when fan min is used
|
||||
- thanks to piotrasd for the testing
|
||||
###2016.05.17
|
||||
- notice: with the latest update you will need to reconfigure your fan control settings
|
||||
- fix: convert fan control settings to name based instead of number based (you'll need to setup fancontrol again)
|
||||
- fix: workaround for dynamix plugin update api not refreshing after update (remove update message)
|
||||
- fix: workaround for dynamix drop down checklists bug (F5 on other tab breaks ddcl)
|
||||
- fix: refresh Settings tab on tab1 click for ddcl bug
|
||||
- fix: check for board manufacturer
|
||||
- add: remove auto board.json update and add manual Check for Updates button
|
||||
- add: update fan logging: add start/stop messages and fan speed changes are in the form Fan Name(%):Temp Sensor(°C)
|
||||
- add: ignored sensors to fan control page
|
||||
- add: ignored sensors and command line arguments to CL helper scripts: ipmisensors, ipmisel and ipmifru
|
||||
- add: Dashboard settings for all sensors, deselect all to disable Dashboard
|
||||
- remove: Dashboard switch and types
|
||||
###2016.05.16
|
||||
- add: Dashboard will show any sensor if state is not nominal
|
||||
- fix: Dashboard summary switch default to On
|
||||
- fix: no sensors if localhost and network enabled
|
||||
- fix: no sensors displayed if ignore is empty Thanks to ljm42
|
||||
- fix: remove depreciated network check in footer display Thanks ljm42
|
||||
###2016.05.15
|
||||
- fix: condense code, remove excess files
|
||||
- fix: readings page buttons alignment
|
||||
- fix: sensors refresh rate first time dash or readings page is loaded
|
||||
- add: update ipmi check method and network checks (move into fuctions)
|
||||
- add: color to sensor readings in footer based on sensor state
|
||||
- add: tablesorter reset for all tables (1st click is ascending, 2nd is descending and third 3rd is unsorted)
|
||||
- add: settings drop down check list for sensor select and ignore
|
||||
- add: settings drop down check list for Dashboard sensor type (uncheck all: hides IPMI Dashboard Summary)
|
||||
- add: Dashboard summary page and hide switch
|
||||
- fix: motherboard logos not showing
|
||||
###2016.05.10a
|
||||
- fix: local ipmi check Thanks to ljm42
|
||||
###2016.05.10
|
||||
- add: CL helper scripts ipmisensors and ipmisel that use network settings if network is enabled
|
||||
- add: motherboard logos
|
||||
- add: ability to use any fan or temp sensor in footer
|
||||
- add: settings and readings tabs to Settings and Tools menu
|
||||
- add: ipmi sensors configuration to readings page
|
||||
- add: ipmi system configuration editor to settings page
|
||||
- add: ability to edit, save and load on boot ipmi sensor configuration e.g. sensor thresholds
|
||||
- add: help button text
|
||||
- add: Dynamix plugin update API
|
||||
- add: ipmi fan control for ASRock boards only
|
||||
- (based on fans being named: CPU_FAN1, CPU_FAN2, REAR_FAN1, REAR_FAN2, FRNT_FAN1, FRNT_FAN2)
|
||||
- add: select fan control ip address
|
||||
- add: advanced view for fan control options
|
||||
- fix: show separate status on each settings page
|
||||
- add: highest array hard drive temp as a sensor
|
||||
- add: abbreviated units to readings, change units column to type column
|
||||
- fix: reduce footer footprint
|
||||
- fix: network options
|
||||
###2016.04.27
|
||||
- fix: network timeout
|
||||
###2016.03.27
|
||||
- fix: add check for valid date
|
||||
###2016.03.26
|
||||
- fix: change date format function
|
||||
###2016.03.25
|
||||
- fix: archived events page update on event delete
|
||||
- fix: archived events with same timestamp
|
||||
- fix: archived events tablesorter pager
|
||||
###2016.03.24
|
||||
- update for 6.2 to freeipmi 1.5.1
|
||||
- new installs on 6.2 will work fine
|
||||
- 6.2 users with previous install will need to reboot or install libgcrypt-1.6.5 (temporarily) to use freipmi 1.5.1
|
||||
- libgcrypt-1.6.5 is included with unRAID 6.2 and previous versions downgraded it to 1.5.5 to use freeipmi 1.4.11
|
||||
- http://ftp.slackware.com/pub/slackware/slackware64-current/slackware64/n/libgcrypt-1.6.5-x86_64-1.txz
|
||||
- fix: bug local ipmi timeout webgui to wait for ipmi (only affected systems without local ipmi)
|
||||
- changed backup events to archived events
|
||||
- add archived event page and switch
|
||||
###2016.03.14
|
||||
- update freeipmi 1.4.11 package remove init.d
|
||||
- fix virtual machines not auto starting due to /etc/init.d directory created by freeipmi package
|
||||
###2016.03.13
|
||||
- add test button for sending sample notification events
|
||||
- move ID column to advanced
|
||||
- fix temp units not showing in footer
|
||||
- add backup switch to backup events when clearing them
|
||||
###2016.03.12
|
||||
- converted to using freeipmi instead of ipmitool
|
||||
- add support for multiple ipmi hosts local, network or both together
|
||||
- add an extra fan display so you have 2 temp and 2 fan in footer
|
||||
- add different warning levels based on event state
|
||||
- fix race condition on reading of sensors and events
|
||||
- add highlights and filters to tables
|
||||
- add settings button to readings page and reading button to settings page
|
||||
- add polling time to event monitoring
|
||||
- code optimizations
|
||||
###2016.02.22
|
||||
- fix: advanced changed to fixed instead of toggle
|
||||
###2016.02.15a
|
||||
- fix: array combine error for sensors with non uniform data
|
||||
###2016.02.15
|
||||
- update tablesorter
|
||||
- add: fan control page and status
|
||||
- fan control Not functional yet
|
||||
- add: settings for temps and fan display
|
||||
- add: temp and fans readings to footer
|
||||
- move event daemon start and stop functions to rc scripts
|
||||
- remove daemon start and stop with array
|
||||
- move daemon start process to plugin install
|
||||
- move daemon stop process to rc.local_shutdown
|
||||
###2016.01.17
|
||||
- add tablesorter as a separate package
|
||||
- fix values outside of critical showing green
|
||||
- add icons instead of switches
|
||||
- minor code changes
|
||||
###2015.12.30
|
||||
- remove old plugin directory on install
|
||||
###2015.12.20
|
||||
- fixed "Waiting for events" triggering notification on system start
|
||||
- reorganize events page
|
||||
- add switchbuttons
|
||||
- move from UnRAID OS to System Information under Tools menu
|
||||
- add unRAID version check
|
||||
###2015.12.14
|
||||
- make sure and remove old plugin
|
||||
###2015.12.11
|
||||
- change repo
|
||||
- change install and remove method
|
||||
###2015.11.17
|
||||
- fix permissions for events
|
||||
###2015.11.10b
|
||||
- deleted wrong page file
|
||||
###2015.11.10
|
||||
- stop event monitoring on plugin removal
|
||||
###2015.11.09
|
||||
- minor bug fixes
|
||||
###2015.11.08
|
||||
- add settings page
|
||||
- add event notifications
|
||||
- add remote IPMI access
|
||||
###2015.08.15
|
||||
- update for unRAID 6.1-rc+ only
|
||||
###2015.05.07a
|
||||
- fix bug
|
||||
###2015.05.07
|
||||
- initial unRAID 6 release.
|
||||
</CHANGES>
|
||||
|
||||
<!--
|
||||
The 'tablesorter' package file.
|
||||
-->
|
||||
<FILE Name="/boot/config/plugins/tablesorter/tablesorter-2.27.6-x86_64-1.txz" Run="/sbin/upgradepkg --install-new">
|
||||
<URL>&gitURL;/archive/tablesorter-2.27.6-x86_64-1.txz</URL>
|
||||
<MD5>ead9fb4c4a317e7d6426b3521f0e0c0b</MD5>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
This plugin uses freeipmi to display sensor readings
|
||||
-->
|
||||
|
||||
<FILE Name="&plgPATH;/freeipmi-1.5.3-x86_64-1.txz" Min="6.2" Run="/sbin/upgradepkg --install-new">
|
||||
<URL>&pkgURL;/freeipmi-1.5.3-x86_64-1.txz</URL>
|
||||
<MD5>1aa566b9a1c0561b82f27118ee3d8f14</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/freeipmi-1.4.11-x86_64-3.txz" Min="6.1" Max="6.1.99" Run="/sbin/upgradepkg --install-new">
|
||||
<URL>&pkgURL;/freeipmi-1.4.11-x86_64-3.txz</URL>
|
||||
<MD5>6c7839886f7c7b0cc4947aaf6199d60e</MD5>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'plugin' config file.
|
||||
-->
|
||||
<FILE Name="&plgPATH;/&name;.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
IPMISELD="disable"
|
||||
IPMIPOLL="60"
|
||||
NETWORK="disable"
|
||||
LOCAL="disable"
|
||||
IPADDR=""
|
||||
USER=""
|
||||
PASSWORD=""
|
||||
DISP_SENSOR1="0"
|
||||
DISP_SENSOR2="0"
|
||||
DISP_SENSOR1="0"
|
||||
DISP_SENSOR2="0"
|
||||
LOADCFG="disable"
|
||||
DASHTYPES=""
|
||||
IGNORE=""
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'plugin' fan config file.
|
||||
-->
|
||||
<FILE Name="&plgPATH;/fan.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
FANCONTROL="disable"
|
||||
FANPOLL="3"
|
||||
FANIP=""
|
||||
IPMIBOARD=""
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
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>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="install">
|
||||
<INLINE>
|
||||
#Verify unRAID Version
|
||||
source /etc/unraid-version
|
||||
VER=${version:0:3}
|
||||
|
||||
if [[ $VER == 6.0 ]]; then
|
||||
echo "unRAID version 6.1 or higher is required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify and install plugin package
|
||||
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||
echo "Wrong 'plugin' package md5 hash."
|
||||
rm &plgPATH;/&plgNAME;.txz \
|
||||
&plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
|
||||
if [ -e "/boot/config/plugins/ipmi/boards.json" ]; then
|
||||
mv &plgPATH;/boards.json &plgPATH;/board.json
|
||||
fi
|
||||
|
||||
# Load impi drivers
|
||||
echo "loading ipmi drivers..."
|
||||
for module in ipmi_msghandler ipmi_devintf ipmi_si; do
|
||||
modprobe -q $module
|
||||
done
|
||||
|
||||
<![CDATA[
|
||||
# Start scripts if enabled
|
||||
echo "checking ipmi event monitor..."
|
||||
/etc/rc.d/rc.ipmiseld start >/dev/null 2>&1 < /dev/null &
|
||||
sleep 1
|
||||
echo "checking ipmi system log tail..."
|
||||
setsid /etc/rc.d/rc.ipmitail start >/dev/null 2>&1 < /dev/null &
|
||||
sleep 1
|
||||
echo "checking ipmi fan control..."
|
||||
setsid /usr/sbin/ipmifan --quit > /dev/null 2>&1 &
|
||||
sleep 1
|
||||
setsid /usr/sbin/ipmifan --daemon &
|
||||
sleep 1
|
||||
echo "checking ipmi sensors configuration..."
|
||||
setsid /etc/rc.d/rc.ipmicfg commit &
|
||||
sleep 1
|
||||
]]>
|
||||
|
||||
# Cleaning old source files
|
||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||
find &plgPATH;/ -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 2016, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
fi
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
#stop daemon
|
||||
/etc/rc.d/rc.ipmiseld stop
|
||||
sleep 1
|
||||
/etc/rc.d/rc.ipmitail stop
|
||||
sleep 1
|
||||
echo "stopping ipmi fan control..."
|
||||
sleep 1
|
||||
/usr/sbin/ipmifan --quit
|
||||
sleep 1
|
||||
|
||||
rm -rf &plgPATH;/libgcrypt*.txz
|
||||
|
||||
removepkg &plgPATH;/*.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz \
|
||||
&plgPATH;/*.md5
|
||||
|
||||
|
||||
echo "unloading ipmi drivers..."
|
||||
for module in ipmi_msghandler ipmi_devintf ipmi_si; do
|
||||
modprobe -r $module
|
||||
done
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2016, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
BIN
plugins/ipmi.png
Before Width: | Height: | Size: 36 KiB |
|
@ -1,232 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "libvirtwol">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2017.04.11">
|
||||
<!ENTITY launch "Settings/VMSettings">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" launch="&launch;" version="&version;" pluginURL="&pluginURL;">
|
||||
|
||||
<!--
|
||||
This Plugin installs libvirt wake on lan for unRaid 6.1 All dependencies are installed as needed and is controlable from the webgui.
|
||||
-->
|
||||
|
||||
<CHANGES>
|
||||
##&name;
|
||||
###2017.04.11
|
||||
- update python for 6.2, 6.3 and 6.4
|
||||
###2017.01.30a
|
||||
- harden code for XSS and CSRF vulnerabilities
|
||||
- fix form not defined and submitting
|
||||
- update libvirt-python to 2.5.0 for 6.3
|
||||
- update python to 2.7.13
|
||||
- add support link to readme
|
||||
###2016.11.05
|
||||
- fix: continue script on exception e.g. error in vm xml
|
||||
###2016.10.22
|
||||
- fix: min and max
|
||||
###2016.10.15
|
||||
- add: min and max versions
|
||||
###2016.10.09
|
||||
- update for 6.3
|
||||
###2016.09.16
|
||||
- update python to 2.7.12
|
||||
###2016.06.04
|
||||
- add rc script
|
||||
- amend dynamix plugin api
|
||||
###2016.04.16
|
||||
- add help button comments
|
||||
- add dynamix plugin API
|
||||
- add white-space: normal to fix status css formatting
|
||||
###2016.03.23
|
||||
- remove libpcap
|
||||
###2016.03.19
|
||||
- add wake on lan to advanced view
|
||||
###2016.03.14
|
||||
- update package locations
|
||||
###2016.03.12
|
||||
- add dual package support for 6.1 and 6.2+
|
||||
- add python 2.7.11 for 6.2+
|
||||
- add libvirt python 1.3.1 for 6.2+
|
||||
- move settings to php file and include in vm settings
|
||||
- move all permissions on scripts to plugin package install
|
||||
###2016.01.22
|
||||
- update install and remove scripts
|
||||
- check if config exists
|
||||
- create a default config file
|
||||
###2016.01.02
|
||||
- fix not starting with array
|
||||
###2015.12.21a
|
||||
- fix config file and start/stop
|
||||
- add unRAID version check
|
||||
- add md5 package ckeck
|
||||
- convert install and remove scripts
|
||||
###2015.12.01
|
||||
- added fix for other packet sizes
|
||||
###2015.11.18
|
||||
- update python to 2.7.9
|
||||
###2015.11.17
|
||||
- fix start and stop event permissions
|
||||
###2015.11.16
|
||||
- added promiscuous mode to listen for all packets
|
||||
- will recieve all ether proto 0x0842 packets now
|
||||
###2015.11.15
|
||||
- added support for ethertype 0x0842
|
||||
- tested with ether-wake but asus router still not waking
|
||||
###2015.11.14c
|
||||
- fix plugin page image and link
|
||||
- pkg variable typo
|
||||
###2015.11.14
|
||||
- initial commit
|
||||
</CHANGES>
|
||||
|
||||
<FILE Name="&plgPATH;/python-2.7.13-x86_64-1.txz" Min="6.4" Run="upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.4/python-2.7.13-x86_64-1.txz</URL>
|
||||
<MD5>67d18569672de5dd48e4dda2f7ce0e88</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/python-2.7.13a-x86_64-2.txz" Min="6.2" Max="6.3.99" Run="upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.3/python-2.7.13a-x86_64-2.txz</URL>
|
||||
<MD5>576078a891a9c50d19e04b1b2249dc05</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/python-2.7.9-x86_64-1.txz" Min="6.1" Max="6.1.99" Run="upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.1/python-2.7.9-x86_64-1.txz</URL>
|
||||
<MD5>7d5f6d12757c59e5f08ca25bd63aab78</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libvirt-python-2.5.0-x86_64-1ponce.txz" Min="6.3" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libvirt-python-2.5.0-x86_64-1ponce.txz</URL>
|
||||
<MD5>f8e0ec66914344f0894ff45f7d8561f5</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libvirt-python-1.3.1-x86_64-1ponce.txz" Min="6.2" Max="6.2.99" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libvirt-python-1.3.1-x86_64-1ponce.txz</URL>
|
||||
<MD5>9a64e4941dd9c7fa3b9c8bf244c9a2d3</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libvirt-python-1.2.18-x86_64-1ponce.txz" Min="6.1" Max="6.1.99" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libvirt-python-1.2.18-x86_64-1ponce.txz</URL>
|
||||
<MD5>4198c7784a57d7ff80fb1d53811ceb5e</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/pylibpcap-0.6.2-x86_64-1_slack.txz" Min="6.1" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/pylibpcap-0.6.2-x86_64-1_slack.txz</URL>
|
||||
<MD5>2531f44126b3c05d76782c9eedba9988</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="/boot/config/domain.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
WOL="disable"
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
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>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash">
|
||||
<INLINE>
|
||||
#Verify unRAID Version
|
||||
source /etc/unraid-version
|
||||
VER=${version:0:3}
|
||||
|
||||
if [[ $VER == 6.0 ]]; then
|
||||
echo "unRAID version 6.1 or higher is required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify and install plugin package
|
||||
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||
echo "Wrong 'plugin' package md5 hash."
|
||||
rm &plgPATH;/&plgNAME;.txz
|
||||
rm &plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
if [[ $VER == 6.2 ]]; then
|
||||
# restore VM Manager Menu
|
||||
sed -i -- 's/VMManager:1/OtherSettings/g' /usr/local/emhttp/plugins/dynamix.vm.manager/VMSettings.page
|
||||
fi
|
||||
|
||||
if [[ $VER == 6.3 ]]; then
|
||||
# restore VM Manager Menu
|
||||
sed -i -- 's/VMManager:1/OtherSettings/g' /usr/local/emhttp/plugins/dynamix.vm.manager/VMSettings.page
|
||||
fi
|
||||
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
|
||||
#restart event daemon
|
||||
<![CDATA[
|
||||
/usr/local/emhttp/plugins/libvirtwol/scripts/stop >/dev/null 2>&1 < /dev/null &
|
||||
sleep 1
|
||||
echo "starting libvirtwol..."
|
||||
setsid /usr/local/emhttp/plugins/libvirtwol/scripts/start >/dev/null 2>&1 < /dev/null &
|
||||
]]>
|
||||
|
||||
# Cleaning old source files
|
||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||
find &plgPATH;/ -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 2016-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
fi
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
&emhttp;/scripts/stop
|
||||
removepkg &plgPATH;/&plgNAME;.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz \
|
||||
&plgPATH;/*.md5
|
||||
|
||||
# restore VM Manager Menu
|
||||
#sed -i -- 's/VMManager:1/OtherSettings/g' /usr/local/emhttp/plugins/dynamix.vm.manager/VMSettings.page
|
||||
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2016-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
Before Width: | Height: | Size: 36 KiB |
|
@ -1,167 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "qnotify">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2016.10.09">
|
||||
<!ENTITY launch "Settings/QNotify">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
||||
|
||||
<CHANGES>
|
||||
##&name;
|
||||
###&version;
|
||||
- update for 6.3
|
||||
###2016.10.02
|
||||
- add: Python 3.5.2 for unRAID 6.2
|
||||
###2016.06.23
|
||||
- fix: compile separate Python 3.5.1 for unRAID 6.1
|
||||
###2016.05.28
|
||||
- add: log file
|
||||
###2016.05.22
|
||||
- fix: get token from notification settings
|
||||
- fix: settings clearing when stopping
|
||||
###2016.05.20
|
||||
- add: dynamix plugin update api
|
||||
###2016.05.19
|
||||
- initial unRAID 6 release.
|
||||
</CHANGES>
|
||||
|
||||
<!--
|
||||
This plugin uses PyQuassel to send Pushbullet notifications for Quassel Core Server
|
||||
-->
|
||||
<FILE Name="&plgPATH;/python3-3.5.2-x86_64-1.tgz" Min="6.2" Run="/sbin/upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.2/python3-3.5.2-x86_64-1.tgz</URL>
|
||||
<MD5>d535f46f828f8200e907787ddf9294ed</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/python3-3.5.1-x86_64-1.txz" Max="6.1.99" Run="/sbin/upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.1/python3-3.5.1-x86_64-1.txz</URL>
|
||||
<MD5>e19803aa714dcea6dd8f922089d4e996</MD5>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'plugin' config file.
|
||||
-->
|
||||
<FILE Name="&plgPATH;/&name;.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
DAEMON="disable"
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'plugin' python config file.
|
||||
-->
|
||||
<FILE Name="&plgPATH;/config.py">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
host = "localhost"
|
||||
port = 4242
|
||||
username = ""
|
||||
password = ""
|
||||
enabledPlugins = ["pushbullet"]
|
||||
pushbulletAccessToken = ""
|
||||
pushbulletDeviceName = "None"
|
||||
pushIfKeyword = [""]
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
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>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="install">
|
||||
<INLINE>
|
||||
#Verify unRAID Version
|
||||
source /etc/unraid-version
|
||||
VER=${version:0:3}
|
||||
|
||||
if [[ $VER == 6.0 ]]; then
|
||||
echo "unRAID version 6.1 or higher is required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify and install plugin package
|
||||
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||
echo "Wrong 'plugin' package md5 hash."
|
||||
rm &plgPATH;/&plgNAME;.txz \
|
||||
&plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
|
||||
# Start scripts if enabled
|
||||
<![CDATA[
|
||||
echo "checking qnotify daemon..."
|
||||
setsid /etc/rc.d/rc.qnotify start >/dev/null 2>&1 < /dev/null &
|
||||
sleep 1
|
||||
]]>
|
||||
|
||||
# Cleaning old source files
|
||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||
find &plgPATH;/ -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 2016, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
fi
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
#stop daemon
|
||||
/etc/rc.d/rc.qnotify stop
|
||||
sleep 1
|
||||
|
||||
removepkg &plgPATH;/&plgNAME;.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz \
|
||||
&plgPATH;/*.md5
|
||||
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2016, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
Before Width: | Height: | Size: 15 KiB |
|
@ -1,301 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "speedtest">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2017.04.16">
|
||||
<!ENTITY launch "Settings/SpeedtestSettingsTabs">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY pkgs "/boot/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!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>
|
||||
##&name;
|
||||
###2017.04.16
|
||||
- fix: remove my dangling link
|
||||
- fix: set server default to 0 to prevent null variable if saved before server list loads
|
||||
###2017.04.11
|
||||
- update python for 6.2, 6.3 and 6.4
|
||||
- remove zpeter's speetest script due to end of development
|
||||
- add sivel script to 1.0.3
|
||||
###2017.02.13
|
||||
- version bump
|
||||
###2017.02.12a
|
||||
- fix scheduler hourly setting
|
||||
- fix scheduler tab calculation
|
||||
###2017.01.30
|
||||
- update python to 2.7.13
|
||||
- add support link to readme
|
||||
###2017.01.27
|
||||
- more code for XSS and CSRF vulnerabilities
|
||||
###2017.01.23
|
||||
- remove local tablesorter
|
||||
- move js depends to cdn
|
||||
- add sivel version 1.0.2
|
||||
- harden code for XSS and CSRF vulnerabilities
|
||||
###2017.01.07
|
||||
- update scripts
|
||||
- add support for speedtest-linux script
|
||||
- fix deleting single result
|
||||
###2016.11.04
|
||||
- fix: python min
|
||||
###2016.10.28
|
||||
- update min/max version
|
||||
###2016.10.15
|
||||
- update speedtest-linux to 1.0.2-c
|
||||
###2016.10.09a
|
||||
- update for 6.3
|
||||
###2016.09.16
|
||||
- update python to 2.7.12
|
||||
- update tablesorter to 2.27.6
|
||||
###2016.06.19
|
||||
- fix: scheduler not saving changes
|
||||
###2016.06.10
|
||||
- fix: make schedule variables unique, so other schedules aren't affected
|
||||
###2016.06.08
|
||||
- fix: getting no results because script version 0.3.1 missing timeout option
|
||||
###2016.06.04
|
||||
- fix: history table css
|
||||
###2016.06.03
|
||||
- add: selectable versions of speedtest-cli
|
||||
- add: timeout option for those getting 0 values
|
||||
- move and revise manual list to server side
|
||||
###2016.05.22
|
||||
- fix: units error when using bytes
|
||||
- fix: increase chart size and remove horizontal title so date labels show correctly.
|
||||
- add: extra speedtest scripts (speedtest-cli and speedtest-linux)
|
||||
###2016.05.21
|
||||
- fix: fix scheduler tab count if no mover settings
|
||||
- fix: blank image not showing with empty table
|
||||
###2016.05.20
|
||||
- fix: workaround for dynamix plugin update api not refreshing after update (remove update message)
|
||||
- fix: change chart sort order
|
||||
- fix: streamline code
|
||||
###2016.05.15
|
||||
- fix: tabs not working due to image path
|
||||
###2016.05.06
|
||||
- add: tabs for settings, scheduler and history
|
||||
- add: dynamix plugin update api
|
||||
- add: help info
|
||||
###2016.03.14
|
||||
- update package locations
|
||||
###2016.03.12
|
||||
- fix: install python 2.7.11 for unRAID 6.2+
|
||||
- fix: install python 2.7.9 for unRAID 6.1
|
||||
###2016.02.28
|
||||
- fix: chart and table sync on changes
|
||||
- fix: filters save
|
||||
- fix: page refresh after manual test
|
||||
- fix: various minor css and code
|
||||
- add settings icon
|
||||
- removed stacked charts
|
||||
- add: persistent chart selection cookie
|
||||
- tested working on clean install OSX 10.11 and Safari 9.0
|
||||
- tested working on upgrade to OSX 10.11.3 and Safari 9.03
|
||||
###2016.02.25
|
||||
- fix: chart filter cookie
|
||||
- fix: after deletion of row next image not shown
|
||||
###2016.02.24
|
||||
- add modified speedtest.py script
|
||||
- remove obsolete dependencies from plugin install
|
||||
- fix share image function hopefully for Safari
|
||||
- add scheduler and history button to settings page
|
||||
###2016.02.23
|
||||
- update packages to NerdPack versions
|
||||
###2016.02.21
|
||||
- add save chart type to cookie
|
||||
- add save chart data type cookie
|
||||
- move row click to table column click
|
||||
###2016.02.14
|
||||
- fix: move delete all outside icon tag
|
||||
- fix: no quotes on table row id
|
||||
- add: animation to table row delete
|
||||
- move: tablesorter to document ready
|
||||
- add: function to save filters on page refresh
|
||||
- add: charts: line, area, vertical, horizontal
|
||||
- date format to fixed yyyy-mm-dd hh:mm day for sorting and charts
|
||||
- update tablesorter
|
||||
###2016.01.17
|
||||
- remove symlink to speedtest-linux
|
||||
###2016.01.16
|
||||
- minor diplay changes
|
||||
- add tablesorter as a separate package
|
||||
###2016.01.15
|
||||
- fix filter save
|
||||
- add filter reset button
|
||||
- add speedtest-linux command
|
||||
###2016.01.12
|
||||
- add checks for failed speedtest
|
||||
###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.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.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
|
||||
- added speedtest-xml script to /usr/sbin/ for cron jobs
|
||||
- added logging to speedtest.php for start and completion of the script
|
||||
###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.11c
|
||||
- update package name
|
||||
- update install and remove scripts
|
||||
###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
|
||||
</CHANGES>
|
||||
|
||||
<FILE Name="&plgPATH;/python-2.7.13-x86_64-1.txz" Min="6.4" Run="upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.4/python-2.7.13-x86_64-1.txz</URL>
|
||||
<MD5>67d18569672de5dd48e4dda2f7ce0e88</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/python-2.7.13a-x86_64-2.txz" Min="6.2" Max="6.3.99" Run="upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.3/python-2.7.13a-x86_64-2.txz</URL>
|
||||
<MD5>576078a891a9c50d19e04b1b2249dc05</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/python-2.7.9-x86_64-1.txz" Max="6.1.99" Run="/sbin/upgradepkg --install-new">
|
||||
<URL>&gitURL;/packages/6.1/python-2.7.9-x86_64-1.txz</URL>
|
||||
<MD5>7d5f6d12757c59e5f08ca25bd63aab78</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/pyOpenSSL-0.15.1-x86_64-1_slack.txz" Min="6.1" Run="/sbin/upgradepkg --install-new">
|
||||
<URL>&pkgURL;/pyOpenSSL-0.15.1-x86_64-1_slack.txz</URL>
|
||||
<MD5>b422874df919df6baa10774bd2ddc2cc</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/&name;.cfg">
|
||||
<INLINE>
|
||||
<![CDATA[
|
||||
VERSION="1.0.2"
|
||||
TIMEOUT="10"
|
||||
SECURE="no"
|
||||
UNITS="bits"
|
||||
SHARE="share"
|
||||
LIST="auto"
|
||||
SERVER=""
|
||||
hour="3"
|
||||
mode="2"
|
||||
min="0"
|
||||
]]>
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
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>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash">
|
||||
<INLINE>
|
||||
#Verify unRAID Version
|
||||
source /etc/unraid-version
|
||||
VER=${version:0:3}
|
||||
|
||||
if [[ $VER == 6.0 ]]; then
|
||||
echo "unRAID version 6.1 or higher is required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify and install plugin package
|
||||
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||
echo "Wrong 'plugin' package md5 hash."
|
||||
rm &plgPATH;/&plgNAME;.txz
|
||||
rm &plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
|
||||
|
||||
# Cleaning old source files
|
||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||
find &plgPATH;/ -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-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
fi
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
removepkg &plgPATH;/&plgNAME;.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz \
|
||||
&plgPATH;/*.md5
|
||||
|
||||
# Remove cron entry
|
||||
rm -f /boot/config/plugins/dynamix/speedtest.cron
|
||||
/usr/local/sbin/update_cron
|
||||
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2015-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
Before Width: | Height: | Size: 36 KiB |
|
@ -1,159 +0,0 @@
|
|||
<?xml version='1.0' standalone='yes'?>
|
||||
|
||||
<!DOCTYPE PLUGIN [
|
||||
<!ENTITY name "wakeonlan">
|
||||
<!ENTITY author "dmacias72">
|
||||
<!ENTITY version "2017.04.09">
|
||||
<!ENTITY launch "Settings/Wakeonlan">
|
||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||
]>
|
||||
|
||||
<PLUGIN name="&name;" author="&author;" launch="&launch;" version="&version;" pluginURL="&pluginURL;">
|
||||
|
||||
<CHANGES>
|
||||
##&name;
|
||||
###&version;
|
||||
- fix empty ip address resulting in failed scan
|
||||
###2017.01.29a
|
||||
- harden code for XSS and CSRF vulnerabilities
|
||||
- update nmap to 7.40
|
||||
- fix: blank scan.xml causing errors
|
||||
- misc code improvements
|
||||
- add: dynamix plugin update api
|
||||
###2016.10.24
|
||||
- fix: ip address variable
|
||||
- fix: scan not working
|
||||
###2016.10.22
|
||||
- update ip address variable
|
||||
- update code formatting
|
||||
###2016.09.16
|
||||
- update tablesorter to 2.27.6
|
||||
###2016.01.16
|
||||
- minor diplay changes
|
||||
- add tablesorter as a separate package
|
||||
###2016.01.09a
|
||||
- saved mac address cannot be blank
|
||||
- minor code changes
|
||||
###2016.01.09
|
||||
- move repo to unRaid-plugins
|
||||
- add tablesorter fork for better sorting and sort save
|
||||
- add separate tab for scanning
|
||||
- completely update layout and revise code
|
||||
###2015.11.21
|
||||
- minor fixes
|
||||
###2015.03.05a
|
||||
- fix default ethernet interface
|
||||
###2015.02.24
|
||||
- button bindings when editing
|
||||
###2015.02.21
|
||||
- added autosave
|
||||
- added table sorting
|
||||
- disable scan function caching
|
||||
- loading gifs
|
||||
- show scan results only after scan
|
||||
- scan ip after wake
|
||||
###2015.02.20
|
||||
- initial unRAID 6 release.
|
||||
</CHANGES>
|
||||
|
||||
<!--
|
||||
This plugin uses etherwake for wake on lan
|
||||
-->
|
||||
<FILE Name="&plgPATH;/etherwake-1.09-x86_64-5cf.txz" Min="6.1" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/etherwake-1.09-x86_64-5cf.txz</URL>
|
||||
<MD5>0b65b7b7ac2262f1a9b998cbb9f913e2</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/libnl-1.1.4-x86_64-1.txz" Min="6.1" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/libnl-1.1.4-x86_64-1.txz</URL>
|
||||
<MD5>435837a5bf0401a937d6ec93e458333b</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/nmap-7.40-x86_64-1.txz" Min="6.2" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/nmap-7.40-x86_64-1.txz</URL>
|
||||
<MD5>d48d79e1e57aaeb7aee322c78ad9b9a6</MD5>
|
||||
</FILE>
|
||||
|
||||
<FILE Name="&plgPATH;/nmap-6.40-x86_64-1.txz" Min="6.1" Max="6.1.99" Run="upgradepkg --install-new">
|
||||
<URL>&pkgURL;/nmap-6.40-x86_64-1.txz</URL>
|
||||
<MD5>462cf835c4475ddfd2bd15cd10e8349d</MD5>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
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>
|
||||
</FILE>
|
||||
|
||||
<!--
|
||||
The 'install' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash">
|
||||
<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
|
||||
|
||||
# Verify and install plugin package
|
||||
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||
echo "Wrong 'plugin' package md5 hash."
|
||||
rm &plgPATH;/&plgNAME;.txz
|
||||
rm &plgPATH;/&plgNAME;.md5
|
||||
exit 1
|
||||
else
|
||||
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||
fi
|
||||
|
||||
# Cleaning old source files
|
||||
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||
find &plgPATH;/ -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 2016-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
The 'remove' script.
|
||||
-->
|
||||
<FILE Run="/bin/bash" Method="remove">
|
||||
<INLINE>
|
||||
removepkg &plgPATH;/&plgNAME;.txz
|
||||
rm -rf &emhttp;
|
||||
rm -f &plgPATH;/*.txz \
|
||||
&plgPATH;/*.md5
|
||||
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------"
|
||||
echo " &name; has been removed."
|
||||
echo " Copyright 2016-2017, &author;"
|
||||
echo " Version: &version;"
|
||||
echo "-----------------------------------------------------------"
|
||||
echo ""
|
||||
</INLINE>
|
||||
</FILE>
|
||||
|
||||
</PLUGIN>
|
Before Width: | Height: | Size: 36 KiB |