support configuration of munin plugin through environment variables
[linksys-wrt3g-tools.git] / scripts / status.php
index 5384d919f067e5efdb2fec5c20ccd25586d4a1de..b75a5087a0df80d9679517fd8bb43dd71525373b 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 {
     $w = new Wrt3g();
@@ -20,5 +20,6 @@ try {
     }
 } catch (Exception $e) {
     echo 'Error: ' . $e->getMessage() . "\n";
+    exit(1);
 }
 ?>
\ No newline at end of file