summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 94a092824..3bbcfc8a3 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -870,7 +870,11 @@ sub has_cpu_flag {
sub matching_type {
my ($type) = @_;
- $type =~ /laptop/i && isLaptop();
+ if ($type =~ /laptop/i) {
+ return isLaptop();
+ } elsif ($type =~ /wireless/i) {
+ return any { c::isNetDeviceWirelessAware($_) } getNet();
+ }
}
sub usbMice() { grep { $_->{media_type} =~ /\|Mouse/ && $_->{driver} !~ /wacom/ ||