aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-12-16 18:58:46 +0100
committerChristian Weiske <cweiske@cweiske.de>2010-12-16 18:58:46 +0100
commit66bef39ccf96d685da05412da28416e1bac385b2 (patch)
treee7fd41d9a47d87de3eb9e5005402844cf4565daf
parent0c29f7e44d8b766f944b086642a38526cf38c182 (diff)
downloadlinksys-wrt3g-tools-66bef39ccf96d685da05412da28416e1bac385b2.tar.gz
linksys-wrt3g-tools-66bef39ccf96d685da05412da28416e1bac385b2.zip
fix dummy setup
-rwxr-xr-xscripts/linksys-wrt3g.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/linksys-wrt3g.php b/scripts/linksys-wrt3g.php
index 824c287..628dfe9 100755
--- a/scripts/linksys-wrt3g.php
+++ b/scripts/linksys-wrt3g.php
@@ -123,16 +123,16 @@ try {
try {
$router = new Wrt3g();
+ $router->verbosity = $result->options['verbosity'];
+ $router->host = $result->options['host'];
+ $router->user = $result->options['user'];
+ $router->password = $result->options['password'];
+
if ($result->options['dummy']) {
require_once 'Wrt3g/DummyRequest.php';
$router->requestClass = 'Wrt3g_DummyRequest';
$router->log('Using dummy data', 1);
- } else {
}
- $router->verbosity = $result->options['verbosity'];
- $router->host = $result->options['host'];
- $router->user = $result->options['user'];
- $router->password = $result->options['password'];
$router->log('Command: ' . $result->command_name, 2);