aboutsummaryrefslogtreecommitdiffstats
path: root/config/gwled/gwled.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/gwled/gwled.php')
-rw-r--r--config/gwled/gwled.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/config/gwled/gwled.php b/config/gwled/gwled.php
new file mode 100644
index 00000000..efcb73dd
--- /dev/null
+++ b/config/gwled/gwled.php
@@ -0,0 +1,18 @@
+#!/usr/local/bin/php -q
+<?php
+require_once("config.inc");
+require_once("functions.inc");
+require_once("gwled.inc");
+require_once("led.inc");
+require_once("gwlb.inc");
+
+global $config;
+$gwled_config = $config['installedpackages']['gwled']['config'][0];
+
+if (($gwled_config['enable_led2']) && ($gwled_config['gw_led2'])) {
+ gwled_set_status($gwled_config['gw_led2'], 2);
+}
+if (($gwled_config['enable_led3']) && ($gwled_config['gw_led3'])) {
+ gwled_set_status($gwled_config['gw_led3'], 3);
+}
+?>