diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/linksys-wrt3g.php | 10 |
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); |
