implement non-authenticated default status
[linksys-wrt3g-tools.git] / scripts / linksys-wrt3g.php
index f53d76a819364642d83f1918cc9ea1e60b30894b..d9d72884fbd34098e8780f32a0decb05c0e23500 100755 (executable)
@@ -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)) {