]> ###2016.03.12 - add dual package support for 6.1 and 6.2+ - add python 2.7.11 for 6.2+ - add libvirt python 1.3.1 for 6.2+ - move settings to php file and include in vm settings - move all permissions on scripts to plugin package install ###2016.01.22 - update install and remove scripts - check if config exists - create a default config file ###2016.01.02 - fix not starting with array ###2015.12.21a - fix config file and start/stop - add unRAID version check - add md5 package ckeck - convert install and remove scripts ###2015.12.01 - added fix for other packet sizes ###2015.11.18 - update python to 2.7.9 ###2015.11.17 - fix start and stop event permissions ###2015.11.16 - added promiscuous mode to listen for all packets - will recieve all ether proto 0x0842 packets now ###2015.11.15 - added support for ethertype 0x0842 - tested with ether-wake but asus router still not waking ###2015.11.14c - fix plugin page image and link - pkg variable typo ###2015.11.14 - initial commit &gitURL;/packages/python-2.7.9-x86_64-1.txz 7d5f6d12757c59e5f08ca25bd63aab78 &gitURL;/source/packages/python-2.7.11-x86_64-2.txz 5ff7e4c8a7ef742fbf12a6ae25914df7 &pkgURL;/libvirt-python-1.2.18-x86_64-1ponce.txz 4198c7784a57d7ff80fb1d53811ceb5e &pkgURL;/libvirt-python-1.3.1-x86_64-1ponce.txz 9a64e4941dd9c7fa3b9c8bf244c9a2d3 &pkgURL;/libpcap-1.4.0-x86_64-1.txz cbe651aff5d49d1c3a5a7ad6a4262393 &pkgURL;/pylibpcap-0.6.2-x86_64-1_slack.txz 2531f44126b3c05d76782c9eedba9988 &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 if [[ ${version:0:3} == 6.1 ]]; then echo "\nInstalling dependencies for unRAID 6.1" upgradepkg --install-new /boot/config/plugins/NerdPack/packages/python-2.7.9-x86_64-1.txz upgradepkg --install-new &plgpath;/libvirt-python-1.2.18-x86_64-1ponce.txz fi if [[ ${version:0:3} == 6.2 ]]; then echo "\nInstalling dependencies for unRAID 6.2" upgradepkg --install-new /boot/config/plugins/NerdPack/packages/python-2.7.11-x86_64-2.txz upgradepkg --install-new &plgpath;/libvirt-python-1.3.1-x86_64-1ponce.txz # restore VM Manager Menu sed -i -- 's/VMManager:1/OtherSettings/g' /usr/local/emhttp/plugins/dynamix.vm.manager/VMSettings.page fi upgradepkg --install-new &plgpath;/&plgname;.txz #restart event daemon /dev/null 2>&1 < /dev/null & sleep 1 echo "starting libvirtwol..." setsid /usr/local/emhttp/plugins/libvirtwol/scripts/start >/dev/null 2>&1 < /dev/null & ]]> # 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 2016, &author;" echo " Version: &version;" echo "-----------------------------------------------------------" echo "" fi &emhttp;/scripts/stop removepkg &plgpath;/&plgname;.txz rm -rf &emhttp; rm -f &plgpath;/&plgname;.txz rm -f &plgpath;/&plgname;.md5 #remove installed packages removepkg &plgpath;/*.txz rm -f &plgpath;/*.txz # restore VM Manager Menu #sed -i -- 's/VMManager:1/OtherSettings/g' /usr/local/emhttp/plugins/dynamix.vm.manager/VMSettings.page echo "" echo "-----------------------------------------------------------" echo " &name; has been removed." echo " Copyright 2016, &author;" echo " Version: &version;" echo "-----------------------------------------------------------" echo ""