summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-04-12 11:56:27 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-04-12 11:56:27 +0000
commit62d85df496747d6229223851cb4e6cdbf8f75612 (patch)
treec8383979f2074397c0d1e9c1c614611d046fce9c /perl-install
parent8bb0c64017abed30348ce0ff939b65c104486cc7 (diff)
downloaddrakx-62d85df496747d6229223851cb4e6cdbf8f75612.tar
drakx-62d85df496747d6229223851cb4e6cdbf8f75612.tar.gz
drakx-62d85df496747d6229223851cb4e6cdbf8f75612.tar.bz2
drakx-62d85df496747d6229223851cb4e6cdbf8f75612.tar.xz
drakx-62d85df496747d6229223851cb4e6cdbf8f75612.zip
Need to specify the full path of ifup/ifdown when a shell isn't used to run them
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/tools.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 8d625bf26..29d9946c3 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({ detach => 1, root => $::prefix }, "ifup", $netc->{NET_INTERFACE});
+ run_program::rooted({ detach => 1, root => $::prefix }, "/sbin/ifup", $netc->{NET_INTERFACE});
}
sub disconnect_backend {
my ($netc) = @_;
- run_program::rooted({ detach => 1, root => $::prefix }, "ifdown", $netc->{NET_INTERFACE});
+ run_program::rooted({ detach => 1, root => $::prefix }, "/sbin/ifdown", $netc->{NET_INTERFACE});
}
sub bg_command_as_root {