summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-20 21:06:02 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-20 21:06:02 +0000
commit2a2d04bad1a7317c5461e31b82ed927faf0a1582 (patch)
tree6e052b0e7933db8e79dd16d25c2c5b310add0522 /perl-install
parent7531dd4d5c065ea83d698efc14d1c3f5adc93263 (diff)
downloaddrakx-2a2d04bad1a7317c5461e31b82ed927faf0a1582.tar
drakx-2a2d04bad1a7317c5461e31b82ed927faf0a1582.tar.gz
drakx-2a2d04bad1a7317c5461e31b82ed927faf0a1582.tar.bz2
drakx-2a2d04bad1a7317c5461e31b82ed927faf0a1582.tar.xz
drakx-2a2d04bad1a7317c5461e31b82ed927faf0a1582.zip
do not show drakids in menu if Interactive Firewall isn't available
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/standalone/net_applet9
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 1a6aa67ad..0cfb4a978 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -56,7 +56,7 @@ my %actions = (
'upNetwork' => { name => sub { N("Connect %s", $_[0]) }, launch => sub { network::tools::start_interface($_[0], 1) } },
'downNetwork' => { name => sub { N("Disconnect %s", $_[0]) }, launch => sub { network::tools::stop_interface($_[0], 1) } },
'monitorNetwork' => { name => N("Monitor Network"), launch => \&run_net_monitor },
- 'monitorAFW' => { name => N("Interactive Firewall"), launch => \&run_drakids },
+ 'monitorIFW' => { name => N("Interactive Firewall"), launch => \&run_drakids },
'wireless' => { name => N("Manage wireless networks"), launch => \&run_drakroam },
'confNetwork' => { name => N("Configure Network"), launch => sub { system("/usr/sbin/drakconnect --skip-wizard &") } },
'chooseInterface' => {
@@ -268,9 +268,12 @@ sub generate_menu {
my (@settings);
my $has_wireless = $monitor && detect_devices::has_wireless();
+ my $interactive;
+ eval { $interactive = $ifw->get_interactive };
if ($state_type eq 'connected') {
- $menu->append($create_item->($_)) foreach qw(downNetwork monitorNetwork monitorAFW);
+ $menu->append($create_item->($_)) foreach qw(downNetwork monitorNetwork);
+ $menu->append($create_item->('monitorIFW')) if defined $interactive;
} elsif ($state_type eq 'disconnected') {
$menu->append($create_item->('upNetwork'));
}
@@ -282,8 +285,6 @@ sub generate_menu {
}
push @settings, $create_item->('chooseProfile');
- my $interactive;
- eval { $interactive = $ifw->get_interactive };
if (defined $interactive) {
$interactive_cb = gtkshow(gtksignal_connect(gtkset_active(Gtk2::CheckMenuItem->new_with_label(N("Interactive intrusion detection")),
$interactive),