summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_applet
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-07-07 07:01:26 +0000
committerOlivier Blin <oblin@mandriva.org>2005-07-07 07:01:26 +0000
commitf0f54fec1e8a3c7b8e24be3de3dc12deac4998dc (patch)
treef8645f310c3bdd52746f574a51ae027af57f39ab /perl-install/standalone/net_applet
parentc5abf3c8716b1e731cb08a341281bff55339b99f (diff)
downloaddrakx-backup-do-not-use-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar
drakx-backup-do-not-use-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.gz
drakx-backup-do-not-use-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.bz2
drakx-backup-do-not-use-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.xz
drakx-backup-do-not-use-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.zip
remove connect/diconnect_backend
add start/stop_net_interface add detach parameter to start/stop_interface
Diffstat (limited to 'perl-install/standalone/net_applet')
-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 d8e72394e..03b5cba10 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -63,8 +63,8 @@ Run the \"%s\" assistant from the Mandriva Linux Control Center", N("Set up a ne
);
my %actions = (
- 'upNetwork' => { name => sub { N("Connect %s", $_[0]) }, launch => \&network::tools::start_interface },
- 'downNetwork' => { name => sub { N("Disconnect %s", $_[0]) }, launch => \&network::tools::stop_interface },
+ '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 => sub { system("/usr/sbin/net_monitor --defaultintf $_[0] &") } },
'wireless' => { name => N("Manage wireless networks"), launch => sub { system("/usr/sbin/drakroam &") } },
'confNetwork' => { name => N("Configure Network"), launch => sub { system("/usr/sbin/drakconnect --skip-wizard &") } },
@@ -82,8 +82,9 @@ my %actions = (
choices => sub { network::network::netprofile_list() },
choice_selected => sub { $_[0] eq $net->{PROFILE} },
launch => sub {
- $net->{PROFILE} = $_[0];
- network::tools::bg_command_as_root('/sbin/set-netprofile', $net->{PROFILE});
+ require run_program;
+ $net->{PROFILE} = $_[0];
+ run_program::raw({ detach => 1 }, network::tools::wrap_command_for_root('/sbin/set-netprofile', $net->{PROFILE}));
}
},
'refresh' => { name => N("Refresh"), launch => sub { checkNetworkForce() } },