summaryrefslogtreecommitdiffstats
path: root/lib/network/shorewall.pm
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2013-03-24 14:46:39 +0000
committerOlivier Blin <blino@mageia.org>2013-03-24 14:46:39 +0000
commit41b10c74f06cd9bf2a267f88c6aa1d3529a5c06f (patch)
treef6f24bf902efabc221426c0e610fb7c5cec84483 /lib/network/shorewall.pm
parent12666da66e77c33a78360d6e917d93d3cbcea75b (diff)
downloaddrakx-net-41b10c74f06cd9bf2a267f88c6aa1d3529a5c06f.tar
drakx-net-41b10c74f06cd9bf2a267f88c6aa1d3529a5c06f.tar.gz
drakx-net-41b10c74f06cd9bf2a267f88c6aa1d3529a5c06f.tar.bz2
drakx-net-41b10c74f06cd9bf2a267f88c6aa1d3529a5c06f.tar.xz
drakx-net-41b10c74f06cd9bf2a267f88c6aa1d3529a5c06f.zip
drakfirewall: fix detecting if shorewall is enabled (mga#8699)
Diffstat (limited to 'lib/network/shorewall.pm')
-rw-r--r--lib/network/shorewall.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/shorewall.pm b/lib/network/shorewall.pm
index aa286e7..ee71d1d 100644
--- a/lib/network/shorewall.pm
+++ b/lib/network/shorewall.pm
@@ -109,7 +109,7 @@ sub read {
#- read old rules file if config is not moved to rules.drakx yet
my @rules = get_config_file(-f "$::prefix${shorewall_root}/rules.drakx" ? 'rules.drakx' : 'rules');
require services;
- my %conf = (disabled => services::is_service_running(shorewall),
+ my %conf = (disabled => !services::starts_on_boot("shorewall"),
ports => join(' ', map {
my $e = $_;
map { "$_/$e->[3]" } split(',', $e->[4]);