diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-07-07 07:01:26 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-07-07 07:01:26 +0000 |
commit | f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc (patch) | |
tree | f8645f310c3bdd52746f574a51ae027af57f39ab /perl-install/standalone/net_monitor | |
parent | c5abf3c8716b1e731cb08a341281bff55339b99f (diff) | |
download | drakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar drakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.gz drakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.bz2 drakx-f0f54fec1e8a3c7b8e24be3de3dc12deac4998dc.tar.xz drakx-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_monitor')
-rwxr-xr-x | perl-install/standalone/net_monitor | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor index e72e8e53a..1bef0f4d5 100755 --- a/perl-install/standalone/net_monitor +++ b/perl-install/standalone/net_monitor @@ -47,8 +47,8 @@ network::network::read_net_conf($net); $default_intf ||= $net->{default}{interface}; if ($force) { - $connect and network::tools::start_interface($default_intf); - $disconnect and network::tools::stop_interface($default_intf); + $connect and network::tools::start_interface($default_intf, 1); + $disconnect and network::tools::stop_interface($default_intf, 1); $connect = $disconnect = 0; } $quiet and exit(0); @@ -251,8 +251,8 @@ sub connection() { $tool_pid = $wasconnected == 1 - ? network::tools::stop_interface($default_intf) - : network::tools::start_interface($default_intf); + ? network::tools::stop_interface($default_intf, 1) + : network::tools::start_interface($default_intf, 1); } sub graph_window_width() { $width - $left_border } |