diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-06-08 06:20:35 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-06-08 06:20:35 +0000 |
commit | 19c821c38a98fbde25f012b8f4d5431f8f830018 (patch) | |
tree | 6592e09013846692a0cc68d6e8236fc28e5294e6 /perl-install/network | |
parent | a45bb69e7664f4e9d3f16a0d2f16b58e6ce9261a (diff) | |
download | drakx-19c821c38a98fbde25f012b8f4d5431f8f830018.tar drakx-19c821c38a98fbde25f012b8f4d5431f8f830018.tar.gz drakx-19c821c38a98fbde25f012b8f4d5431f8f830018.tar.bz2 drakx-19c821c38a98fbde25f012b8f4d5431f8f830018.tar.xz drakx-19c821c38a98fbde25f012b8f4d5431f8f830018.zip |
allow to install ndiswrapper drivers during install
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/ndiswrapper.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/network/ndiswrapper.pm b/perl-install/network/ndiswrapper.pm index b56256c2a..fa726ffaa 100644 --- a/perl-install/network/ndiswrapper.pm +++ b/perl-install/network/ndiswrapper.pm @@ -35,9 +35,10 @@ sub ask_driver { $driver =~ s/\.inf$//; #- first uninstall the driver if present, may solve issues if it is corrupted - -d $::prefix . "$ndiswrapper_root/$driver" and system('ndiswrapper', '-e', $driver); + require run_program; + -d $::prefix . "$ndiswrapper_root/$driver" and run_program::rooted($::prefix, 'ndiswrapper', '-e', $driver); - unless (system('ndiswrapper', '-i', $inf_file) == 0) { + unless (run_program::rooted($::prefix, 'ndiswrapper', '-i', $inf_file)) { $in->ask_warn(N("Error"), N("Unable to install the %s ndiswrapper driver!", $driver)); return undef; } |