git.cweiske.de
/
linksys-wrt3g-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
on the way to read status_noauth
[linksys-wrt3g-tools.git]
/
scripts
/
munin.php
diff --git
a/scripts/munin.php
b/scripts/munin.php
index 2b7a9e93f81c2076378efd43c35d9e440e1b4a8a..f9bf147a4577f72f94951ec0de80b652787cc85b 100755
(executable)
--- a/
scripts/munin.php
+++ b/
scripts/munin.php
@@
-11,7
+11,7
@@
* @license AGPL v3
* @link http://cweiske.de/linksys-wrt3g-tools.htm
*/
* @license AGPL v3
* @link http://cweiske.de/linksys-wrt3g-tools.htm
*/
-require_once dirname(__FILE__) . '/config.php';
+require_once dirname(__FILE__) . '/
../
config.php';
require_once 'Wrt3g.php';
if (isset($argv[1]) && $argv[1] == 'autoconf') {
require_once 'Wrt3g.php';
if (isset($argv[1]) && $argv[1] == 'autoconf') {
@@
-49,8
+49,12
@@
TXT;
try {
try {
- $w = new Wrt3g();
- $arStatus = $w->getStatus();
+ $router = new Wrt3g();
+ $router->host = $GLOBALS['linksys-wrt3g-tools']['host'];
+ $router->user = $GLOBALS['linksys-wrt3g-tools']['user'];
+ $router->password = $GLOBALS['linksys-wrt3g-tools']['password'];
+
+ $arStatus = $router->getStatus();
$conn = $arStatus['connection'];
if ($conn == 'disconnected') {
$conn = $arStatus['connection'];
if ($conn == 'disconnected') {