diff --git a/plugins/wakeonlan.plg b/plugins/wakeonlan.plg new file mode 100755 index 00000000..a20800c3 --- /dev/null +++ b/plugins/wakeonlan.plg @@ -0,0 +1,147 @@ + + + + + + + + + + + + +]> + + + + + +###2016.01. +- +###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. + + + + +&pkgURL;/etherwake-1.09-x86_64-5cf.txz +0b65b7b7ac2262f1a9b998cbb9f913e2 + + + +&pkgURL;/nmap-6.40-x86_64-1.txz +462cf835c4475ddfd2bd15cd10e8349d + + + +&pkgURL;/libnl-1.1.4-x86_64-1.txz +435837a5bf0401a937d6ec93e458333b + + + + +&gitURL;/archive/&plgname;.txz + + + + +&gitURL;/archive/&plgname;.md5 + + + + + +#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 + +if [ -d /usr/local/emhttp/plugins/wol ]; then + rm -f /usr/local/emhttp/plugins/wol +fi + +if [ ! -d /var/log/&name; ]; then + mkdir -p /var/log/&name; +fi +chmod 755 /&tmp/&name; + +# 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 "" + + + +The 'remove' script. +--> + + +removepkg &plgpath;/&plgname;.txz +rm -rf &emhttp; +rm -f &plgpath;/&plgname;.txz +rm -f &plgpath;/&plgname;.md5 + +#remove installed packages +removepkg &plgpath;/*.txz +rm rm -f &plgpath;/*.txz + +echo "" +echo "-----------------------------------------------------------" +echo " &name; has been removed." +echo " Copyright 2015, &author;" +echo " Version: &version;" +echo "-----------------------------------------------------------" +echo "" + + + +