summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/ndiswrapper.pm5
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;
}