X-Git-Url: https://git.cweiske.de/linksys-wrt3g-tools.git/blobdiff_plain/ace4f4e56406f2754b142b4252f0411636b5b49d..b92abe47b7290b0e861ddadaa7abcde5bc65cd6e:/scripts/reboot.php diff --git a/scripts/reboot.php b/scripts/reboot.php index a7be1be..53b8b96 100644 --- a/scripts/reboot.php +++ b/scripts/reboot.php @@ -10,7 +10,7 @@ * @license AGPL v3 * @link http://cweiske.de/linksys-wrt3g-tools.htm */ -require_once dirname(__FILE__) . '/config.php'; +require_once dirname(__FILE__) . '/../config.php'; require_once 'Wrt3g.php'; try { @@ -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