summaryrefslogtreecommitdiffstats
path: root/perl-install/network/tools.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network/tools.pm')
-rw-r--r--perl-install/network/tools.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 2e0ea2d74..5bf376dba 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -294,4 +294,12 @@ sub get_default_metric {
$idx * 10;
}
+sub ndiswrapper_installed_drivers {
+ `ndiswrapper -l` =~ /(\w+)\s+driver present/mg;
+}
+
+sub ndiswrapper_available_drivers {
+ `ndiswrapper -l` =~ /(\w+)\s+driver present, hardware present/mg;
+}
+
1;