summaryrefslogtreecommitdiffstats
path: root/perl-install/network/tools.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r--perl-install/network/tools.pm14
1 files changed, 1 insertions, 13 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index f4a22a5e1..0c88cf055 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -60,7 +60,7 @@ sub run_interface_command {
my ($command, $intf, $detach) = @_;
my @command =
!$> || system("/usr/sbin/usernetctl $intf report") == 0 ?
- ($command, $intf) :
+ ($command, $intf, if_(!$::isInstall, "boot")) :
wrap_command_for_root($command, $intf);
run_program::raw({ detach => $detach, root => $::prefix }, @command);
}
@@ -85,18 +85,6 @@ sub stop_net_interface {
stop_interface($net->{net_interface}, $detach);
}
-sub start_ifplugd {
- my ($interface) = @_;
- run_program::run('/sbin/ifplugd', '-b', '-i', $interface);
-}
-
-sub stop_ifplugd {
- my ($interface) = @_;
- my $ifplugd = chomp_(cat_("/var/run/ifplugd.$interface.pid"));
- $ifplugd and kill(15, $ifplugd);
- sleep 1;
-}
-
sub connected() { gethostbyname("www.mandriva.com") ? 1 : 0 }
# request a ref on a bg_connect and a ref on a scalar