summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-07 15:22:12 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-07 15:22:12 +0000
commit52f606237f774fbf666b2c1ab9d53b7d65af0288 (patch)
tree91b9cadfd39b9e9a8ff6d0d62bc81075577bce11
parentb1e63fadd00a77146e8c8e1cde1c608c9ee47faf (diff)
downloaddrakx-52f606237f774fbf666b2c1ab9d53b7d65af0288.tar
drakx-52f606237f774fbf666b2c1ab9d53b7d65af0288.tar.gz
drakx-52f606237f774fbf666b2c1ab9d53b7d65af0288.tar.bz2
drakx-52f606237f774fbf666b2c1ab9d53b7d65af0288.tar.xz
drakx-52f606237f774fbf666b2c1ab9d53b7d65af0288.zip
run ifup/ifdown with run_program::raw and detach, so that pppd doesn't
complain about invalid tty
-rw-r--r--perl-install/network/tools.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 844ce41b5..8f479a639 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -55,12 +55,12 @@ sub passwd_by_login {
sub connect_backend {
my ($netc) = @_;
- run_program::rooted($::prefix, "ifup $netc->{NET_INTERFACE} &");
+ run_program::rooted({ detach => 1, root => $::prefix }, "ifup", $netc->{NET_INTERFACE});
}
sub disconnect_backend {
my ($netc) = @_;
- run_program::rooted($::prefix, "ifdown $netc->{NET_INTERFACE} &");
+ run_program::rooted({ detach => 1, root => $::prefix }, "ifdown", $netc->{NET_INTERFACE});
}
sub bg_command_as_root {
@@ -76,7 +76,7 @@ sub bg_command_as_root {
sub user_run_interface_command {
my ($command, $intf) = @_;
if (system("usernetctl $intf report") == 0) {
- run_program::run("$command $intf &");
+ run_program::raw({ detach => 1 }, $command, $intf);
} else {
bg_command_as_root($command, $intf);
}