diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2011-01-25 06:03:05 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2011-01-25 06:03:05 +0100 |
| commit | 064cd050748d919a60110106f7c8bc6a422ac9d8 (patch) | |
| tree | 0a827b4c159bbd03db44804b6a7ecec71e94e681 /scripts | |
| parent | 6d987d2c0ba8435a64843d42362851d40b277eec (diff) | |
| download | linksys-wrt3g-tools-064cd050748d919a60110106f7c8bc6a422ac9d8.tar.gz linksys-wrt3g-tools-064cd050748d919a60110106f7c8bc6a422ac9d8.zip | |
implement non-authenticated default status
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/linksys-wrt3g.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/linksys-wrt3g.php b/scripts/linksys-wrt3g.php index f53d76a..d9d7288 100755 --- a/scripts/linksys-wrt3g.php +++ b/scripts/linksys-wrt3g.php @@ -90,6 +90,12 @@ $stCmd = $parser->addCommand( 'description' => 'Show all status details' ) ); +$stCmd = $parser->addCommand( + 'authstatus', + array( + 'description' => 'Show the connection status the old way (authenticated)' + ) +); $parser->addCommand( @@ -147,9 +153,12 @@ try { $arStatus = $router->getFullStatus(); } else if ($result->command_name == 'card') { $arStatus = $router->getCardStatus(); + } else if ($result->command_name == 'authstatus') { + $arStatus = $router->getConnectionStatusAuth(); } else { $arStatus = $router->getConnectionStatus(); } + foreach ($arStatus as $key => $value) { echo $key . ': '; if (is_array($value)) { |
