git.cweiske.de
/
linksys-wrt3g-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
set exit status when router is not available
[linksys-wrt3g-tools.git]
/
scripts
/
reboot.php
diff --git
a/scripts/reboot.php
b/scripts/reboot.php
index a7be1be5f80f38e3b40628aefd0cf9145f040991..cdc37102d76f9ac52d142c24ac5c5d4dc9763bd3 100644
(file)
--- a/
scripts/reboot.php
+++ b/
scripts/reboot.php
@@
-19,5
+19,6
@@
try {
echo $resp->getStatus() . ' ' . $resp->getReasonPhrase() . "\n";
} catch (Exception $e) {
echo 'Error: ' . $e->getMessage() . "\n";
+ exit(1);
}
?>
\ No newline at end of file