From c586b6fc84fe39a21807dd7fde87a15ba72472b6 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 10 Aug 2011 16:38:29 -0400 Subject: Run once when starting to set initial status. --- config/gwled/gwled.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/gwled/gwled.inc b/config/gwled/gwled.inc index 35038034..eb50c575 100644 --- a/config/gwled/gwled.inc +++ b/config/gwled/gwled.inc @@ -22,8 +22,10 @@ function gwled_start() { return; if (($gwled_config['enable_led2']) && ($gwled_config['gw_led2']) - || ($gwled_config['enable_led3']) && ($gwled_config['gw_led3'])) + || ($gwled_config['enable_led3']) && ($gwled_config['gw_led3'])) { mwexec("/usr/local/bin/minicron 30 /var/run/gwled.pid /usr/local/bin/gwled.php"); + mwexec_bg("/usr/local/bin/gwled.php"); + } } function gwled_stop() { -- cgit v1.2.3