diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2010-02-03 11:34:58 -0800 |
---|---|---|
committer | Michael Biebl <mbiebl@gmail.com> | 2010-02-03 20:48:40 +0100 |
commit | d1cf11b9be14dd88bc1eeb9b7cd729fbcee632f7 (patch) | |
tree | 800c0dfd3bc7a685b579bc48f388e51cb6d69b59 | |
parent | e5b0df69127b32f974cf9506460e7852cd25b8e4 (diff) |
fix alternatives matching in native quirks DB
The native quirks DB separates alternatives with ';'. For regexp matching, turn
those into '|', so that they will actually match.
-rwxr-xr-x | pm/sleep.d/98-video-quirk-db-handler | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/sleep.d/98-video-quirk-db-handler b/pm/sleep.d/98-video-quirk-db-handler index 337ae8c..71ba480 100755 --- a/pm/sleep.d/98-video-quirk-db-handler +++ b/pm/sleep.d/98-video-quirk-db-handler @@ -204,7 +204,7 @@ isnum() { # $2 = the given constant (or regular expression), # $1 = the raw data grabbed from HAL or dmidecode or wherever -regex() { [[ $1 =~ $2 ]]; } +regex() { [[ $1 =~ ${2/;/|} ]]; } regex_ncase() { local r |