summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_applet
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-08-30 11:16:31 +0000
committerOlivier Blin <oblin@mandriva.org>2004-08-30 11:16:31 +0000
commitdc6d19b1cc33b5bf7ad00589183fab12ce192cdd (patch)
tree5d417f5d8abfaaa881ad158aae07e18bdd3c5187 /perl-install/standalone/net_applet
parent04eb4aa7851380c102e64d7a2f6eda0d6f14c3fc (diff)
downloaddrakx-dc6d19b1cc33b5bf7ad00589183fab12ce192cdd.tar
drakx-dc6d19b1cc33b5bf7ad00589183fab12ce192cdd.tar.gz
drakx-dc6d19b1cc33b5bf7ad00589183fab12ce192cdd.tar.bz2
drakx-dc6d19b1cc33b5bf7ad00589183fab12ce192cdd.tar.xz
drakx-dc6d19b1cc33b5bf7ad00589183fab12ce192cdd.zip
move start_interface and stop_interface from net_monitor to network::tools, use it in net_monitor and net_applet
Diffstat (limited to 'perl-install/standalone/net_applet')
-rw-r--r--perl-install/standalone/net_applet6
1 files changed, 2 insertions, 4 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index d19a1d9b8..90f67e59f 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -40,10 +40,8 @@ my %appletstate = (
);
my %actions = (
- 'upNetwork' => { name => sub { N("Connect %s", $_[0]) },
- launch => sub { system("/usr/sbin/net_monitor --connect --defaultintf $_[0] &") } },
- 'downNetwork' => { name => sub { N("Disconnect %s", $_[0]) },
- launch => sub { system("/usr/sbin/net_monitor --disconnect --defaultintf $_[0] &") } },
+ 'upNetwork' => { name => sub { N("Connect %s", $_[0]) }, launch => \&network::tools::start_interface },
+ 'downNetwork' => { name => sub { N("Disconnect %s", $_[0]) }, launch => \&network::tools::stop_interface },
'monitorNetwork' => { name => N("Monitor Network"), launch => sub { system("/usr/sbin/net_monitor --defaultintf $_[0] &") } },
'confNetwork' => { name => N("Configure Network"), launch => sub { system("/usr/sbin/drakconnect --skip-wizard &") } },
'refresh' => { name => N("Refresh"), launch => sub { checkNetwork() } },