show reboot result
authorChristian Weiske <cweiske@cweiske.de>
Fri, 10 Dec 2010 17:32:00 +0000 (18:32 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 10 Dec 2010 17:32:00 +0000 (18:32 +0100)
scripts/linksys-wrt3g.php

index 1d1b9d2..ef18708 100644 (file)
@@ -90,7 +90,8 @@ try {
 
     switch ($result->command_name) {
     case 'reboot':
-        $router->reboot();
+        $resp = $router->reboot();
+        echo $resp->getStatus() . ' ' . $resp->getReasonPhrase() . "\n";
         break;
 
     case 'status':