aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-11 10:05:08 -0400
committerjim-p <jimp@pfsense.org>2011-08-11 10:05:08 -0400
commita8fd481ff663b9203036e0d7369b03d992f6cad3 (patch)
tree1f157a35a6f2a6f2fef76b91088430e9e80061e5 /config
parentc586b6fc84fe39a21807dd7fde87a15ba72472b6 (diff)
downloadpfsense-packages-a8fd481ff663b9203036e0d7369b03d992f6cad3.tar.gz
pfsense-packages-a8fd481ff663b9203036e0d7369b03d992f6cad3.tar.bz2
pfsense-packages-a8fd481ff663b9203036e0d7369b03d992f6cad3.zip
Flash for "gathering data" status as well, same as down. Also make it easier to change the interval manually.
Diffstat (limited to 'config')
-rw-r--r--config/gwled/gwled.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/gwled/gwled.inc b/config/gwled/gwled.inc
index eb50c575..3fff4c72 100644
--- a/config/gwled/gwled.inc
+++ b/config/gwled/gwled.inc
@@ -21,9 +21,12 @@ function gwled_start() {
if (!($gwled_config['enable']))
return;
+ // How often to run the check, in seconds.
+ $interval = 15;
+
if (($gwled_config['enable_led2']) && ($gwled_config['gw_led2'])
|| ($gwled_config['enable_led3']) && ($gwled_config['gw_led3'])) {
- mwexec("/usr/local/bin/minicron 30 /var/run/gwled.pid /usr/local/bin/gwled.php");
+ mwexec("/usr/local/bin/minicron {$interval} /var/run/gwled.pid /usr/local/bin/gwled.php");
mwexec_bg("/usr/local/bin/gwled.php");
}
}
@@ -66,7 +69,7 @@ function gwled_set_status($gateway, $led) {
elseif ($status == "none")
led_on($led);
} else
- led_on($led);
+ led_blink($led, "veryfast");
}
?>