From 6ce1ef5198d9b7bf38b651e98f42114f8ef5f369 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Fri, 15 May 2009 14:15:40 +0000 Subject: Properly detecting dansguardian control level (#50700). --- bin/drakguard | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/drakguard b/bin/drakguard index 4dff7aa..2d02d37 100755 --- a/bin/drakguard +++ b/bin/drakguard @@ -245,7 +245,8 @@ sub quit_gui { sub load() { my $guardian = read_dansguardian(); - $level = { reverse %dansguardian_levels }->{$guardian->{naughtynesslimit}}; + my $levelname = { %dansguardian_levels }->{$guardian->{naughtynesslimit}}; + $level = { reverse %dansguardian_levels }->{$levelname} if $levelname; $level ||= { reverse %dansguardian_levels }->{High}; $enable = services::starts_on_boot('dansguardian'); -- cgit v1.2.1