diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-08-20 08:39:36 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-08-20 08:39:36 +0000 |
commit | 8da7a0daa3cac2c0c0de09e6cea307bbf3c7ab48 (patch) | |
tree | 3850cc810aef39d65cbabba97be26ee13ff41834 /perl-install/detect_devices.pm | |
parent | cdcbb8536e7443e10fefff83a327dbb55b7c709a (diff) | |
download | drakx-8da7a0daa3cac2c0c0de09e6cea307bbf3c7ab48.tar drakx-8da7a0daa3cac2c0c0de09e6cea307bbf3c7ab48.tar.gz drakx-8da7a0daa3cac2c0c0de09e6cea307bbf3c7ab48.tar.bz2 drakx-8da7a0daa3cac2c0c0de09e6cea307bbf3c7ab48.tar.xz drakx-8da7a0daa3cac2c0c0de09e6cea307bbf3c7ab48.zip |
add matching_type() to introduce the TYPE keyword in rpmsrate
(supports only laptop type for now)
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 950a11462..dc30060bf 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -783,6 +783,11 @@ sub isLaptop() { || cat_('/proc/cpuinfo') =~ /\bmobile\b/i; } +sub matching_type { + my ($type) = @_; + $type =~ /laptop/i && isLaptop(); +} + sub usbMice() { grep { $_->{media_type} =~ /\|Mouse/ && $_->{driver} !~ /Tablet:wacom/ || $_->{driver} =~ /Mouse:USB/ } usb_probe() } sub usbWacom() { grep { $_->{driver} =~ /Tablet:wacom/ } usb_probe() } |