aboutsummaryrefslogtreecommitdiff
path: root/scripts/reboot.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-12-08 20:20:49 +0100
committerChristian Weiske <cweiske@cweiske.de>2010-12-08 20:20:49 +0100
commitcfe00d3ccd79c2b1c7f8a09853d027dabff3c302 (patch)
tree4f080de77be8dd4d1e3fa6c4b2caafef45b2a7b6 /scripts/reboot.php
parentace4f4e56406f2754b142b4252f0411636b5b49d (diff)
downloadlinksys-wrt3g-tools-cfe00d3ccd79c2b1c7f8a09853d027dabff3c302.tar.gz
linksys-wrt3g-tools-cfe00d3ccd79c2b1c7f8a09853d027dabff3c302.zip
set exit status when router is not available
Diffstat (limited to 'scripts/reboot.php')
-rw-r--r--scripts/reboot.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/reboot.php b/scripts/reboot.php
index a7be1be..cdc3710 100644
--- 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