diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-08-04 10:20:33 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-08-04 10:20:33 +0000 |
commit | cafadbb6ee35e3a03f7a1707b5c309b83fea728b (patch) | |
tree | c338d46bb4e86cca88fdcb23d37a1085548fad0b /perl-install/network/tools.pm | |
parent | 54d10c15b5e74f32178efbff017ea81172da1b30 (diff) | |
download | drakx-cafadbb6ee35e3a03f7a1707b5c309b83fea728b.tar drakx-cafadbb6ee35e3a03f7a1707b5c309b83fea728b.tar.gz drakx-cafadbb6ee35e3a03f7a1707b5c309b83fea728b.tar.bz2 drakx-cafadbb6ee35e3a03f7a1707b5c309b83fea728b.tar.xz drakx-cafadbb6ee35e3a03f7a1707b5c309b83fea728b.zip |
use ifup/ifdown with the boot option to handle ifplugd
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r-- | perl-install/network/tools.pm | 14 |
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 |