aboutsummaryrefslogtreecommitdiff
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
parentace4f4e56406f2754b142b4252f0411636b5b49d (diff)
downloadlinksys-wrt3g-tools-cfe00d3ccd79c2b1c7f8a09853d027dabff3c302.tar.gz
linksys-wrt3g-tools-cfe00d3ccd79c2b1c7f8a09853d027dabff3c302.zip
set exit status when router is not available
-rw-r--r--scripts/reboot.php1
-rw-r--r--scripts/status.php1
2 files changed, 2 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
diff --git a/scripts/status.php b/scripts/status.php
index 5384d91..9f94371 100644
--- a/scripts/status.php
+++ b/scripts/status.php
@@ -20,5 +20,6 @@ try {
}
} catch (Exception $e) {
echo 'Error: ' . $e->getMessage() . "\n";
+ exit(1);
}
?> \ No newline at end of file