From 064cd050748d919a60110106f7c8bc6a422ac9d8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 25 Jan 2011 06:03:05 +0100 Subject: implement non-authenticated default status --- scripts/linksys-wrt3g.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'scripts') 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)) { -- cgit v1.2.3