From ab3f078566fabaead1f9132fdd10a3ffd365e851 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Sun, 13 Dec 2015 11:55:37 -0700 Subject: [PATCH] update old package removal --- plugins/ipmitool-plugin.plg | 18 ++++++++++++++---- source/ipmitool-plugin/install/slack-desc | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/plugins/ipmitool-plugin.plg b/plugins/ipmitool-plugin.plg index 8ebbca2d..d42a5e96 100755 --- a/plugins/ipmitool-plugin.plg +++ b/plugins/ipmitool-plugin.plg @@ -3,7 +3,7 @@ - + @@ -18,6 +18,8 @@ +###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. --> - + +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 diff --git a/source/ipmitool-plugin/install/slack-desc b/source/ipmitool-plugin/install/slack-desc index 972c3794..7035f226 100644 --- a/source/ipmitool-plugin/install/slack-desc +++ b/source/ipmitool-plugin/install/slack-desc @@ -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: