diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2010-12-28 21:57:52 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2010-12-28 21:57:52 +0100 |
| commit | 0d7280a1b89e187b4b21a3a2e685d46e5210551c (patch) | |
| tree | 9f3428bceca0a7f75eef4d67f5f576ce6b4a6622 /scripts/munin.php | |
| parent | 048e915296f6be45191f4e647d19fd02f2659a81 (diff) | |
| download | linksys-wrt3g-tools-0d7280a1b89e187b4b21a3a2e685d46e5210551c.tar.gz linksys-wrt3g-tools-0d7280a1b89e187b4b21a3a2e685d46e5210551c.zip | |
use new config for munin script
Diffstat (limited to 'scripts/munin.php')
| -rwxr-xr-x | scripts/munin.php | 5 |
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(); |
