update ipmitool plugin
This commit is contained in:
parent
8be2dd79b0
commit
072eee9ef5
@ -3,21 +3,31 @@
|
|||||||
<!DOCTYPE PLUGIN [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "ipmitool-plugin">
|
<!ENTITY name "ipmitool-plugin">
|
||||||
<!ENTITY author "dmacias72">
|
<!ENTITY author "dmacias72">
|
||||||
<!ENTITY version "2016.01.17">
|
<!ENTITY version "2016.02.15">
|
||||||
<!ENTITY launch "Tools/IPMItool">
|
<!ENTITY launch "Tools/IPMItool">
|
||||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||||
<!ENTITY pkgURL "&gitURL;/source/packages">
|
<!ENTITY pkgURL "&gitURL;/source/packages">
|
||||||
<!ENTITY pkg "ipmitool-1.8.13-x86_64-1_slack.txz">
|
<!ENTITY pkg "ipmitool-1.8.13-x86_64-1_slack.txz">
|
||||||
<!ENTITY md5 "3301f21f0d66160877f90ffc3278703b">
|
<!ENTITY md5 "3301f21f0d66160877f90ffc3278703b">
|
||||||
<!ENTITY plgpath "/boot/config/plugins/&name;">
|
<!ENTITY plgPATH "/boot/config/plugins/&name;">
|
||||||
<!ENTITY plgname "&name;-&version;-x86_64-1">
|
<!ENTITY plgNAME "&name;-&version;-x86_64-1">
|
||||||
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
|
||||||
]>
|
]>
|
||||||
|
|
||||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
||||||
|
|
||||||
<CHANGES>
|
<CHANGES>
|
||||||
|
###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
|
###2016.01.17
|
||||||
- add tablesorter as a separate package
|
- add tablesorter as a separate package
|
||||||
- fix values outside of critical showing green
|
- fix values outside of critical showing green
|
||||||
@ -59,22 +69,22 @@
|
|||||||
<!--
|
<!--
|
||||||
The 'tablesorter' package file.
|
The 'tablesorter' package file.
|
||||||
-->
|
-->
|
||||||
<FILE Name="/boot/config/plugins/tablesorter/tablesorter-2016.01.16-x86_64-1.txz" Run="/sbin/upgradepkg --install-new">
|
<FILE Name="/boot/config/plugins/tablesorter/tablesorter-2016.02.12-x86_64-1.txz" Run="/sbin/upgradepkg --install-new">
|
||||||
<URL>&gitURL;/archive/tablesorter-2016.01.16-x86_64-1.txz</URL>
|
<URL>&gitURL;/archive/tablesorter-2016.02.12-x86_64-1.txz</URL>
|
||||||
<MD5>139bbc7f9788339193ab9bd994365b4a</MD5>
|
<MD5>d25fb1235efaa5f71c790b8d71ed7337</MD5>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
This plugin uses ipmitool to display sensor readings
|
This plugin uses ipmitool to display sensor readings
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<FILE Name="&plgpath;/&pkg;" Run="upgradepkg --install-new">
|
<FILE Name="&plgPATH;/&pkg;" Run="upgradepkg --install-new">
|
||||||
<URL>&pkgURL;/&pkg;</URL>
|
<URL>&pkgURL;/&pkg;</URL>
|
||||||
<MD5>&md5;</MD5>
|
<MD5>&md5;</MD5>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
|
||||||
|
|
||||||
<FILE Name="&plgpath;/&name;.cfg">
|
<FILE Name="&plgPATH;/&name;.cfg">
|
||||||
<INLINE>
|
<INLINE>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
SERVICE="disable"
|
SERVICE="disable"
|
||||||
@ -89,15 +99,15 @@ PASSWORD="="
|
|||||||
<!--
|
<!--
|
||||||
The 'plugin' package file.
|
The 'plugin' package file.
|
||||||
-->
|
-->
|
||||||
<FILE Name="&plgpath;/&plgname;.txz">
|
<FILE Name="&plgPATH;/&plgNAME;.txz">
|
||||||
<URL>&gitURL;/archive/&plgname;.txz</URL>
|
<URL>&gitURL;/archive/&plgNAME;.txz</URL>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The 'plugin' package MD5 hash.
|
The 'plugin' package MD5 hash.
|
||||||
-->
|
-->
|
||||||
<FILE Name="&plgpath;/&plgname;.md5">
|
<FILE Name="&plgPATH;/&plgNAME;.md5">
|
||||||
<URL>&gitURL;/archive/&plgname;.md5</URL>
|
<URL>&gitURL;/archive/&plgNAME;.md5</URL>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@ -118,33 +128,34 @@ if [ -d /usr/local/emhttp/plugins/ipmitool ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Verify and install plugin package
|
# Verify and install plugin package
|
||||||
sum1=$(/usr/bin/md5sum &plgpath;/&plgname;.txz)
|
sum1=$(/usr/bin/md5sum &plgPATH;/&plgNAME;.txz)
|
||||||
sum2=$(/usr/bin/cat &plgpath;/&plgname;.md5)
|
sum2=$(/usr/bin/cat &plgPATH;/&plgNAME;.md5)
|
||||||
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
if [ "${sum1:0:32}" != "${sum2:0:32}" ]; then
|
||||||
echo "Wrong 'plugin' package md5 hash."
|
echo "Wrong 'plugin' package md5 hash."
|
||||||
rm &plgpath;/&plgname;.txz \
|
rm &plgPATH;/&plgNAME;.txz \
|
||||||
&plgpath;/&plgname;.md5
|
&plgPATH;/&plgNAME;.md5
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
upgradepkg --install-new &plgpath;/&plgname;.txz
|
upgradepkg --install-new &plgPATH;/&plgNAME;.txz
|
||||||
fi
|
|
||||||
|
|
||||||
# Update file permissions of scripts
|
|
||||||
chmod +0755 &emhttp;/scripts/*
|
|
||||||
|
|
||||||
# Load impi drivers
|
# Load impi drivers
|
||||||
echo "loading ipmi drivers..."
|
echo "loading ipmi drivers..."
|
||||||
modprobe ipmi_si
|
modprobe ipmi_si
|
||||||
modprobe ipmi_devintf
|
modprobe ipmi_devintf
|
||||||
|
|
||||||
#restart event daemon
|
# Start scripts if enabled
|
||||||
&emhttp;/scripts/stop
|
<![CDATA[
|
||||||
|
echo "starting ipmievd..."
|
||||||
|
/etc/rc.d/rc.ipmievd start >/dev/null 2>&1 < /dev/null &
|
||||||
sleep 1
|
sleep 1
|
||||||
&emhttp;/scripts/start
|
echo "starting ipmitail..."
|
||||||
|
setsid /etc/rc.d/rc.ipmitail start >/dev/null 2>&1 < /dev/null &
|
||||||
|
sleep 1
|
||||||
|
]]>
|
||||||
|
|
||||||
# Cleaning old source files
|
# Cleaning old source files
|
||||||
find &plgpath;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
find &plgPATH;/ -type f -iname "&name;*.txz" ! -iname "*&version;*" -delete
|
||||||
find &plgpath;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete
|
find &plgPATH;/ -type f -iname "&name;*.md5" ! -iname "*&version;*" -delete
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "-----------------------------------------------------------"
|
echo "-----------------------------------------------------------"
|
||||||
@ -154,6 +165,8 @@ echo " Copyright 2015, &author;"
|
|||||||
echo " Version: &version;"
|
echo " Version: &version;"
|
||||||
echo "-----------------------------------------------------------"
|
echo "-----------------------------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
fi
|
||||||
</INLINE>
|
</INLINE>
|
||||||
</FILE>
|
</FILE>
|
||||||
|
|
||||||
@ -162,11 +175,17 @@ The 'remove' script.
|
|||||||
-->
|
-->
|
||||||
<FILE Run="/bin/bash" Method="remove">
|
<FILE Run="/bin/bash" Method="remove">
|
||||||
<INLINE>
|
<INLINE>
|
||||||
&emhttp;/scripts/stop
|
#stop daemon
|
||||||
removepkg &plgpath;/&plgname;.txz \
|
/etc/rc.d/rc.ipmievd stop
|
||||||
&plgpath;/&pkg;
|
sleep 1
|
||||||
rm -rf &emhttp; \
|
/etc/rc.d/rc.ipmitail stop
|
||||||
-rf &plgpath;
|
sleep 1
|
||||||
|
|
||||||
|
removepkg &plgPATH;/*.txz
|
||||||
|
rm -rf &emhttp;
|
||||||
|
rm -f &plgPATH;/*.txz \
|
||||||
|
&plgPATH;/*.md5
|
||||||
|
|
||||||
|
|
||||||
echo "unloading ipmi drivers..."
|
echo "unloading ipmi drivers..."
|
||||||
modprobe -r ipmi_si
|
modprobe -r ipmi_si
|
||||||
|
@ -11,8 +11,18 @@ The ipmitool plugin allows you to view your system sensors and events using your
|
|||||||
</Description>
|
</Description>
|
||||||
<Support>http://lime-technology.com/forum/index.php?topic=39787.0</Support>
|
<Support>http://lime-technology.com/forum/index.php?topic=39787.0</Support>
|
||||||
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/ipmitool-plugin.png</Icon>
|
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/ipmitool-plugin.png</Icon>
|
||||||
<Date>2016-01-17</Date>
|
<Date>2016-02-15</Date>
|
||||||
<Changes>
|
<Changes>
|
||||||
|
###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
|
###2016.01.17
|
||||||
- add tablesorter as a separate package
|
- add tablesorter as a separate package
|
||||||
- fix values outside of critical showing green
|
- fix values outside of critical showing green
|
||||||
|
Loading…
x
Reference in New Issue
Block a user