diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2010-12-08 20:20:49 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2010-12-08 20:20:49 +0100 |
| commit | cfe00d3ccd79c2b1c7f8a09853d027dabff3c302 (patch) | |
| tree | 4f080de77be8dd4d1e3fa6c4b2caafef45b2a7b6 /scripts/reboot.php | |
| parent | ace4f4e56406f2754b142b4252f0411636b5b49d (diff) | |
| download | linksys-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.php | 1 |
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 |
