aboutsummaryrefslogtreecommitdiff
path: root/scripts/munin.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-12-28 21:57:52 +0100
committerChristian Weiske <cweiske@cweiske.de>2010-12-28 21:57:52 +0100
commit0d7280a1b89e187b4b21a3a2e685d46e5210551c (patch)
tree9f3428bceca0a7f75eef4d67f5f576ce6b4a6622 /scripts/munin.php
parent048e915296f6be45191f4e647d19fd02f2659a81 (diff)
downloadlinksys-wrt3g-tools-0d7280a1b89e187b4b21a3a2e685d46e5210551c.tar.gz
linksys-wrt3g-tools-0d7280a1b89e187b4b21a3a2e685d46e5210551c.zip
use new config for munin script
Diffstat (limited to 'scripts/munin.php')
-rwxr-xr-xscripts/munin.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/munin.php b/scripts/munin.php
index cf7892f..5fc2526 100755
--- a/scripts/munin.php
+++ b/scripts/munin.php
@@ -11,7 +11,6 @@
* @license AGPL v3
* @link http://cweiske.de/linksys-wrt3g-tools.htm
*/
-require_once dirname(__FILE__) . '/../config.php';
require_once 'Wrt3g.php';
if (isset($argv[1]) && $argv[1] == 'autoconf') {
@@ -50,9 +49,7 @@ TXT;
try {
$router = new Wrt3g();
- $router->host = $GLOBALS['linksys-wrt3g-tools']['host'];
- $router->user = $GLOBALS['linksys-wrt3g-tools']['user'];
- $router->password = $GLOBALS['linksys-wrt3g-tools']['password'];
+ $router->loadConfig();
$arStatus = $router->getConnectionStatus();