git.cweiske.de
/
linksys-wrt3g-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6c96802
)
set exit code when rebooting failed
author
Christian Weiske
<cweiske@cweiske.de>
Fri, 10 Dec 2010 17:35:14 +0000
(18:35 +0100)
committer
Christian Weiske
<cweiske@cweiske.de>
Fri, 10 Dec 2010 17:35:14 +0000
(18:35 +0100)
scripts/linksys-wrt3g.php
patch
|
blob
|
history
diff --git
a/scripts/linksys-wrt3g.php
b/scripts/linksys-wrt3g.php
index ef1870892a0b582b2d1c1296ce443999f9fadf73..48683e7250b12deacf1eedc0b34b4a818a477f1f 100644
(file)
--- a/
scripts/linksys-wrt3g.php
+++ b/
scripts/linksys-wrt3g.php
@@
-92,6
+92,9
@@
try {
case 'reboot':
$resp = $router->reboot();
echo $resp->getStatus() . ' ' . $resp->getReasonPhrase() . "\n";
+ if (intval($resp->getStatus() / 100) != 2) {
+ exit(3);
+ }
break;
case 'status':