update old package removal

This commit is contained in:
Derek Macias 2015-12-13 11:55:37 -07:00
parent 69c91fcd40
commit ab3f078566
2 changed files with 15 additions and 5 deletions

View File

@ -3,7 +3,7 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "ipmitool-plugin">
<!ENTITY author "dmacias72">
<!ENTITY version "2015.12.11">
<!ENTITY version "2015.12.13">
<!ENTITY launch "Tools/IPMItool">
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
@ -18,6 +18,8 @@
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
<CHANGES>
###2015.12.13
- make sure and remove old plugin
###2015.12.11
- change repo
- change install and remove method
@ -70,7 +72,15 @@ The 'plugin' package MD5 hash.
The 'install' script.
-->
<FILE Run="/bin/bash" Method="install">
<INLINE>
<INLINE>
if [ ! -d &emhttp; ]; then
mkdir -p &emhttp;
fi
if [ ! -d /usr/local/emhttp/plugins/ipmitool ]; then
mkdir -p /usr/local/emhttp/plugins/ipmitool
fi
# Verify and install plugin package
sum1=$(/usr/bin/md5sum &plgpath;/&plgname;.txz)
sum2=$(/usr/bin/cat &plgpath;/&plgname;.md5)
@ -87,7 +97,7 @@ fi
chmod +0755 &emhttp;/scripts/*
# Load impi drivers
echo "Loading ipmi drivers..."
echo "loading ipmi drivers..."
modprobe ipmi_si
modprobe ipmi_devintf
@ -117,7 +127,7 @@ removepkg &plgpath;/&plgname;.txz \
rm -rf &emhttp; \
-rf &plgpath;
echo "Unloading ipmi drivers..."
echo "unloading ipmi drivers..."
modprobe -r ipmi_si
modprobe -r ipmi_devintf

View File

@ -12,7 +12,7 @@ ipmitool-plugin: The ipmitool plugin allows you to view your system sensors and
ipmitool-plugin: events using your ipmi hardware. Allows for local or remote
ipmitool-plugin: access and event notification.
ipmitool-plugin:
ipmitool-plugin: https://github.com/dmacias72/unRAID
ipmitool-plugin: https://github.com/dmacias72/unRAID-plugins
ipmitool-plugin:
ipmitool-plugin:
ipmitool-plugin: