summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2004-07-19 05:52:02 +0000
committerOlivier Blin <oblin@mandriva.org>2004-07-19 05:52:02 +0000
commitdc1e20629ae49a320a3ef2c15065275636127da9 (patch)
tree693621bc64233f2dcfe54b1011f0b383ac9bf7b0
parente5284130ac9603042bc8fb88442b7a2e3e64ab68 (diff)
downloaddrakx-backup-do-not-use-dc1e20629ae49a320a3ef2c15065275636127da9.tar
drakx-backup-do-not-use-dc1e20629ae49a320a3ef2c15065275636127da9.tar.gz
drakx-backup-do-not-use-dc1e20629ae49a320a3ef2c15065275636127da9.tar.bz2
drakx-backup-do-not-use-dc1e20629ae49a320a3ef2c15065275636127da9.tar.xz
drakx-backup-do-not-use-dc1e20629ae49a320a3ef2c15065275636127da9.zip
use ifup/ifdown to connect/disconnect
-rwxr-xr-xperl-install/standalone/net_monitor7
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor
index 6ec7a2ba2..b2545bd25 100755
--- a/perl-install/standalone/net_monitor
+++ b/perl-install/standalone/net_monitor
@@ -222,11 +222,8 @@ sub connection() {
gtkflush();
- if ($wasconnected == 1) {
- system("/etc/sysconfig/network-scripts/net_cnx_down &");
- } else {
- system("/etc/sysconfig/network-scripts/net_cnx_up &");
- }
+ # ergh, our integrist common::system can't lie on the program name :-/
+ CORE::system { 'consolehelper' } ($wasconnected == 1 ? '/sbin/ifdown' : '/sbin/ifup', $default_intf) or die N("consolehelper missing");
}
sub graph_window_width() { $width - $left_border }