From dc1e20629ae49a320a3ef2c15065275636127da9 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 19 Jul 2004 05:52:02 +0000 Subject: use ifup/ifdown to connect/disconnect --- perl-install/standalone/net_monitor | 7 ++----- 1 file 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 } -- cgit v1.2.1