summaryrefslogtreecommitdiffstats
path: root/bin/net_applet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-20 19:52:33 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-20 19:52:33 +0000
commitb3111e7e9c262d8c71e23a6dc78d5d7a888dacc3 (patch)
treed42205550d30ec092f9743748bcec938017f985b /bin/net_applet
parent683619174a6cd634655ac6a489b5a6efb1b5b3cc (diff)
downloaddrakx-net-b3111e7e9c262d8c71e23a6dc78d5d7a888dacc3.tar
drakx-net-b3111e7e9c262d8c71e23a6dc78d5d7a888dacc3.tar.gz
drakx-net-b3111e7e9c262d8c71e23a6dc78d5d7a888dacc3.tar.bz2
drakx-net-b3111e7e9c262d8c71e23a6dc78d5d7a888dacc3.tar.xz
drakx-net-b3111e7e9c262d8c71e23a6dc78d5d7a888dacc3.zip
perl_checker cleanups
Diffstat (limited to 'bin/net_applet')
-rwxr-xr-xbin/net_applet10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 2873679..43c692c 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -151,7 +151,7 @@ my %actions = (
},
'drakvpn' => {
name => N("Manage VPN connections"),
- launch => sub { run_program::raw({ detach => 1 }, '/usr/sbin/drakvpn'); },
+ launch => sub { run_program::raw({ detach => 1 }, '/usr/sbin/drakvpn') },
},
'confNetwork' => {
name => N("Configure Network"),
@@ -162,7 +162,7 @@ my %actions = (
choices => sub { N("Auto-detect"), sort keys %{$net->{ifcfg}} },
choice_selected => sub {
$watched_interface ? $_[0] eq $watched_interface :
- $_[0] eq N("Auto-detect")
+ $_[0] eq N("Auto-detect");
},
launch => sub {
$watched_interface = $_[0] eq N("Auto-detect") ? undef : $_[0];
@@ -203,14 +203,14 @@ my %actions = (
name => N("VPN connection"),
header => "drakvpn",
choices => sub {
- map { $_->get_configured_connections } network::vpn::list_types
+ map { $_->get_configured_connections } network::vpn::list_types;
},
allow_single_choice => 1,
format_choice => \&network::vpn::get_label,
choice_selected => sub { $_[0]->is_started },
launch => sub {
require interactive; $_[0]->is_started ?
- $_[0]->stop : $_[0]->start(interactive->vnew)
+ $_[0]->stop : $_[0]->start(interactive->vnew);
},
},
'help' => {
@@ -275,7 +275,7 @@ $SIG{HUP} = sub {
};
$SIG{USR1} = sub {
# clear all ifw notifications
- my @packets = eval { $network::net_applet::ifw->get_reports };
+ eval { $network::net_applet::ifw->get_reports };
};
# do not create zombies (#20552)