summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-27 12:45:11 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-27 12:45:11 +0000
commitff9341a2ed4df2b8dd3efdf0ad76ca0131fbfd7d (patch)
tree82c9b1a5f7b3c29c367cef2edf10566a84156f41 /bin
parent11ef6183fed80eff57eadaddf37bf695376e5de5 (diff)
downloaddrakguard-ff9341a2ed4df2b8dd3efdf0ad76ca0131fbfd7d.tar
drakguard-ff9341a2ed4df2b8dd3efdf0ad76ca0131fbfd7d.tar.gz
drakguard-ff9341a2ed4df2b8dd3efdf0ad76ca0131fbfd7d.tar.bz2
drakguard-ff9341a2ed4df2b8dd3efdf0ad76ca0131fbfd7d.tar.xz
drakguard-ff9341a2ed4df2b8dd3efdf0ad76ca0131fbfd7d.zip
revert previous commit, it always ask interfaces list
Diffstat (limited to 'bin')
-rwxr-xr-xbin/drakguard5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/drakguard b/bin/drakguard
index 53ec7c9..0d437d8 100755
--- a/bin/drakguard
+++ b/bin/drakguard
@@ -15,8 +15,6 @@ use network::shorewall;
use network::squid;
use services;
-my $in = interactive->vnew('su');
-
my $dansguardian_main_file = "/etc/dansguardian/dansguardian.conf";
my $dansguardian_filter_file = "/etc/dansguardian/dansguardianf1.conf";
my %dansguardian_levels = (
@@ -57,7 +55,7 @@ my %dansguardian_langs = (
my $blacklist_url_file = "/etc/dansguardian/lists/blacklists/drakguard/urls";
my $whitelist_url_file = "/etc/dansguardian/lists/whitelists/drakguard/urls";
my ($enable, $level, $time_control, $allow_time_change);
-my $shorewall = network::shorewall::read($in);
+my $shorewall = network::shorewall::read();
load();
@@ -69,6 +67,7 @@ $ugtk2::wm_icon = $icon;
my $w = ugtk2->new($title);
#- so that transient_for is defined, for wait messages and popups to be centered
$::main_window = $w->{real_window};
+my $in = interactive->vnew('su');
my $allusers_list = Gtk2::SimpleList->new(N("All users") => 'text');
$allusers_list->get_selection->set_mode('multiple');