2015-12-11 21:03:37 +00:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
|
|
|
|
|
|
|
<!DOCTYPE PLUGIN [
|
2015-12-11 22:14:32 +00:00
|
|
|
<!ENTITY name "ipmitool-plugin">
|
2015-12-11 21:03:37 +00:00
|
|
|
<!ENTITY author "dmacias72">
|
2016-01-18 02:08:23 +00:00
|
|
|
<!ENTITY version "2016.01.17">
|
2015-12-11 21:03:37 +00:00
|
|
|
<!ENTITY launch "Tools/IPMItool">
|
|
|
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
|
|
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
2015-12-11 21:27:27 +00:00
|
|
|
<!ENTITY pkgURL "&gitURL;/source/packages">
|
2015-12-11 21:03:37 +00:00
|
|
|
<!ENTITY pkg "ipmitool-1.8.13-x86_64-1_slack.txz">
|
|
|
|
<!ENTITY md5 "3301f21f0d66160877f90ffc3278703b">
|
|
|
|
<!ENTITY plgpath "/boot/config/plugins/&name;">
|
2015-12-11 21:27:27 +00:00
|
|
|
<!ENTITY plgname "&name;-&version;-x86_64-1">
|
|
|
|
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
2015-12-11 21:03:37 +00:00
|
|
|
]>
|
|
|
|
|
|
|
|
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
|
|
|
|
|
|
|
<CHANGES>
|
2016-01-18 02:08:23 +00:00
|
|
|
###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 10:07:49 +00:00
|
|
|
###2015.12.30
|
2015-12-30 10:00:11 +00:00
|
|
|
- remove old plugin directory on install
|
2015-12-21 07:04:17 +00:00
|
|
|
###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 08:28:47 +00:00
|
|
|
###2015.12.14
|
2015-12-13 18:55:37 +00:00
|
|
|
- make sure and remove old plugin
|
2015-12-11 21:03:37 +00:00
|
|
|
###2015.12.11
|
|
|
|
- change repo
|
|
|
|
- change install and remove method
|
|
|
|
###2015.11.17
|
2015-12-11 21:24:28 +00:00
|
|
|
- fix permissions for events
|
2015-12-11 21:03:37 +00:00
|
|
|
###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>
|
|
|
|
|
2016-01-18 02:08:23 +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 21:03:37 +00:00
|
|
|
<!--
|
|
|
|
This plugin uses ipmitool to display sensor readings
|
|
|
|
-->
|
|
|
|
|
|
|
|
<FILE Name="&plgpath;/&pkg;" Run="upgradepkg --install-new">
|
2015-12-11 21:36:58 +00:00
|
|
|
<URL>&pkgURL;/&pkg;</URL>
|
2015-12-11 21:03:37 +00:00
|
|
|
<MD5>&md5;</MD5>
|
|
|
|
</FILE>
|
|
|
|
|
2016-01-18 02:08:23 +00:00
|
|
|
|
|
|
|
<FILE Name="&plgpath;/&name;.cfg">
|
|
|
|
<INLINE>
|
|
|
|
<![CDATA[
|
|
|
|
SERVICE="disable"
|
|
|
|
REMOTE="disable"
|
|
|
|
IPADDR=""
|
|
|
|
USER=""
|
|
|
|
PASSWORD="="
|
|
|
|
]]>
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
2015-12-11 21:03:37 +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>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'install' script.
|
|
|
|
-->
|
|
|
|
<FILE Run="/bin/bash" Method="install">
|
2015-12-13 18:55:37 +00:00
|
|
|
<INLINE>
|
2015-12-20 08:56:43 +00:00
|
|
|
#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
|
|
|
|
|
|
|
|
#remove old plugin name directory
|
2015-12-30 10:00:11 +00:00
|
|
|
if [ -d /usr/local/emhttp/plugins/ipmitool ]; then
|
2015-12-14 08:28:47 +00:00
|
|
|
rm -rf /usr/local/emhttp/plugins/ipmitool
|
2015-12-13 18:55:37 +00:00
|
|
|
fi
|
|
|
|
|
2015-12-11 21:03:37 +00:00
|
|
|
# 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."
|
2015-12-11 21:42:50 +00:00
|
|
|
rm &plgpath;/&plgname;.txz \
|
|
|
|
&plgpath;/&plgname;.md5
|
2015-12-11 21:03:37 +00:00
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
upgradepkg --install-new &plgpath;/&plgname;.txz
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Update file permissions of scripts
|
|
|
|
chmod +0755 &emhttp;/scripts/*
|
|
|
|
|
|
|
|
# Load impi drivers
|
2015-12-13 18:55:37 +00:00
|
|
|
echo "loading ipmi drivers..."
|
2015-12-11 21:03:37 +00:00
|
|
|
modprobe ipmi_si
|
|
|
|
modprobe ipmi_devintf
|
|
|
|
|
2015-12-21 07:04:17 +00:00
|
|
|
#restart event daemon
|
|
|
|
&emhttp;/scripts/stop
|
|
|
|
sleep 1
|
|
|
|
&emhttp;/scripts/start
|
|
|
|
|
2015-12-11 21:03:37 +00:00
|
|
|
# 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, &author;"
|
|
|
|
echo " Version: &version;"
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The 'remove' script.
|
|
|
|
-->
|
|
|
|
<FILE Run="/bin/bash" Method="remove">
|
|
|
|
<INLINE>
|
|
|
|
&emhttp;/scripts/stop
|
2015-12-11 21:42:50 +00:00
|
|
|
removepkg &plgpath;/&plgname;.txz \
|
|
|
|
&plgpath;/&pkg;
|
|
|
|
rm -rf &emhttp; \
|
2015-12-11 22:38:23 +00:00
|
|
|
-rf &plgpath;
|
2015-12-11 21:03:37 +00:00
|
|
|
|
2015-12-13 18:55:37 +00:00
|
|
|
echo "unloading ipmi drivers..."
|
2015-12-11 21:03:37 +00:00
|
|
|
modprobe -r ipmi_si
|
|
|
|
modprobe -r ipmi_devintf
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo " &name; has been removed."
|
|
|
|
echo " Copyright 2015, &author;"
|
|
|
|
echo " Version: &version;"
|
|
|
|
echo "-----------------------------------------------------------"
|
|
|
|
echo ""
|
|
|
|
</INLINE>
|
|
|
|
</FILE>
|
|
|
|
|
|
|
|
</PLUGIN>
|