From 1725c171115a3c510329234cb1e1677177cf15f5 Mon Sep 17 00:00:00 2001 From: Derek Macias Date: Fri, 22 Jan 2016 12:11:06 -0700 Subject: [PATCH] fix error if config missing --- plugins/libvirtwol.plg | 28 +++++++++++++++++++++++----- plugins/libvirtwol.xml | 6 +++++- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/plugins/libvirtwol.plg b/plugins/libvirtwol.plg index 3c0ed3b2..0764e447 100644 --- a/plugins/libvirtwol.plg +++ b/plugins/libvirtwol.plg @@ -3,12 +3,11 @@ - + - @@ -21,6 +20,10 @@ This Plugin installs libvirt wake on lan for unRaid 6.1 All dependencies are in --> +###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 @@ -52,19 +55,30 @@ This Plugin installs libvirt wake on lan for unRaid 6.1 All dependencies are in https://raw.githubusercontent.com/eschultz/unraid6-nerdpack/master/packages/python-2.7.9-x86_64-1.txz 7d5f6d12757c59e5f08ca25bd63aab78 - + &pkgURL;/libvirt-python-1.2.18-x86_64-1ponce.txz 4198c7784a57d7ff80fb1d53811ceb5e - + &pkgURL;/libpcap-1.4.0-x86_64-1.txz cbe651aff5d49d1c3a5a7ad6a4262393 - + &pkgURL;/pylibpcap-0.6.2-x86_64-1_slack.txz 2531f44126b3c05d76782c9eedba9988 + + + + + + + @@ -140,6 +154,10 @@ 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 diff --git a/plugins/libvirtwol.xml b/plugins/libvirtwol.xml index 75bcc1d0..86700bad 100644 --- a/plugins/libvirtwol.xml +++ b/plugins/libvirtwol.xml @@ -11,8 +11,12 @@ Wake On Lan for Libvirt. Allows you to recieve a wake on lan packet to wake or s http://lime-technology.com/forum/index.php?topic=44017.0 https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/libvirtwol.png -2016-01-02 +2016-01-22 +###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