aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-06 15:27:42 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-06 15:27:42 +0200
commitc8c5d80de864eb6012dc3d234176b1e7b11e79a5 (patch)
tree201d0794689aa561887e953607caa93c91facded /config
parent78bcc59ab40f6ccaf911f05538295970ef8894bb (diff)
downloadpfsense-packages-c8c5d80de864eb6012dc3d234176b1e7b11e79a5.tar.gz
pfsense-packages-c8c5d80de864eb6012dc3d234176b1e7b11e79a5.tar.bz2
pfsense-packages-c8c5d80de864eb6012dc3d234176b1e7b11e79a5.zip
blinkled.inc - remove a redundant check, add move descriptive comment
Diffstat (limited to 'config')
-rw-r--r--config/blinkled8/blinkled.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/config/blinkled8/blinkled.inc b/config/blinkled8/blinkled.inc
index 0980b253..6e76c157 100644
--- a/config/blinkled8/blinkled.inc
+++ b/config/blinkled8/blinkled.inc
@@ -63,7 +63,7 @@ function sync_package_blinkled() {
blinkled_rcfile();
$blinkled_config = $config['installedpackages']['blinkled']['config'][0];
- /* If the service is not enabled, do nothing */
+ /* If the service (being) disabled, stop it (if running) and do nothing else */
if (!($blinkled_config['enable'])) {
if (is_process_running("blinkled")) {
stop_service("blinkled");
@@ -74,10 +74,7 @@ function sync_package_blinkled() {
if (is_process_running("blinkled")) {
stop_service("blinkled");
}
- /* If blinkled is not running, start it */
- if (!is_process_running("blinkled")) {
- start_service("blinkled");
- }
+ start_service("blinkled");
}
function blinkled_launch($int, $led, $return = false) {