aboutsummaryrefslogtreecommitdiffstats
path: root/config/gwled
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-10 16:38:29 -0400
committerjim-p <jimp@pfsense.org>2011-08-10 16:38:29 -0400
commitc586b6fc84fe39a21807dd7fde87a15ba72472b6 (patch)
treeb7cfcb5bf8253181d2598b1f4b9cc6ed3ed3054d /config/gwled
parenta2b3c8ca6bdbaadf032513d354c3c2658e49fa28 (diff)
downloadpfsense-packages-c586b6fc84fe39a21807dd7fde87a15ba72472b6.tar.gz
pfsense-packages-c586b6fc84fe39a21807dd7fde87a15ba72472b6.tar.bz2
pfsense-packages-c586b6fc84fe39a21807dd7fde87a15ba72472b6.zip
Run once when starting to set initial status.
Diffstat (limited to 'config/gwled')
-rw-r--r--config/gwled/gwled.inc4
1 files changed, 3 insertions, 1 deletions
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() {