From: Christian Weiske Date: Wed, 8 Dec 2010 19:20:49 +0000 (+0100) Subject: set exit status when router is not available X-Git-Tag: 1.0.0~66 X-Git-Url: https://git.cweiske.de/linksys-wrt3g-tools.git/commitdiff_plain/cfe00d3ccd79c2b1c7f8a09853d027dabff3c302 set exit status when router is not available --- 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