diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-04-01 12:40:01 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-04-01 12:40:01 -0300 |
commit | 9d7204aa2468fbe829a626355bf292740cdf6ad7 (patch) | |
tree | 8d3b324184b2a13a9380f59fb36d28ef41a52f48 /etc | |
parent | 17c56f4aa85b187d5e7a09161e86eab69abae9f3 (diff) | |
download | pfsense-9d7204aa2468fbe829a626355bf292740cdf6ad7.zip pfsense-9d7204aa2468fbe829a626355bf292740cdf6ad7.tar.gz |
Consider packages that set enable to 'false' or 'off'
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/service-utils.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/service-utils.inc b/etc/inc/service-utils.inc index ccf4bac..4e8fbbb 100644 --- a/etc/inc/service-utils.inc +++ b/etc/inc/service-utils.inc @@ -201,7 +201,10 @@ function is_service_enabled($service_name) { global $config; if ($service_name == "") return false; - if (isset($config['installedpackages'][$service_name]['config'][0]['enable']) && !($config['installedpackages'][$service_name]['config'][0]['enable'])) + if (isset($config['installedpackages'][$service_name]['config'][0]['enable']) && + (($config['installedpackages'][$service_name]['config'][0]['enable'] === false) || + ($config['installedpackages'][$service_name]['config'][0]['enable'] === 'false') || + ($config['installedpackages'][$service_name]['config'][0]['enable'] === 'off'))) return false; return true; } |