support configuration of munin plugin through environment variables
[linksys-wrt3g-tools.git] / scripts / reboot.php
index a7be1be5f80f38e3b40628aefd0cf9145f040991..53b8b969abc92fac4f12ce45fe342fb47cac6a41 100644 (file)
@@ -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