aboutsummaryrefslogtreecommitdiffstats
path: root/config/gwled/gwled.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-10 16:32:07 -0400
committerjim-p <jimp@pfsense.org>2011-08-10 16:32:07 -0400
commita2b3c8ca6bdbaadf032513d354c3c2658e49fa28 (patch)
treef5ece99ef1da4ade233a2885ef170cc19fc4d70b /config/gwled/gwled.php
parente59953342fc399c119766363a3815f7335b07951 (diff)
downloadpfsense-packages-a2b3c8ca6bdbaadf032513d354c3c2658e49fa28.tar.gz
pfsense-packages-a2b3c8ca6bdbaadf032513d354c3c2658e49fa28.tar.bz2
pfsense-packages-a2b3c8ca6bdbaadf032513d354c3c2658e49fa28.zip
Add gwled package that lets you use LED2/3 to show a gateway's status.
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);
+}
+?>