make it easier to run the plugin from cmdline without munin-run
authorChristian Weiske <cweiske@cweiske.de>
Wed, 9 Feb 2011 07:04:51 +0000 (08:04 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 9 Feb 2011 07:04:51 +0000 (08:04 +0100)
munin/usb-wde1_

index 485432b59325ac36a24e16388ca28bbe9b19d9da..27e7bfd8bcab1716a41c7c518cb2334c76c1eca5 100755 (executable)
@@ -46,7 +46,7 @@ http://www.gnu.org/licenses/agpl.html
 
 =cut
 
-. "$MUNIN_LIBDIR/plugins/plugin.sh"
+. ${MUNIN_LIBDIR:=/usr/share/munin}/plugins/plugin.sh
 
 TYPE=`basename $0 | sed 's/^.*_//g'`