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 485432b..27e7bfd 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'`