summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-02-03 11:34:58 -0800
committerMichael Biebl <mbiebl@gmail.com>2010-02-03 20:48:40 +0100
commitd1cf11b9be14dd88bc1eeb9b7cd729fbcee632f7 (patch)
tree800c0dfd3bc7a685b579bc48f388e51cb6d69b59 /pm
parente5b0df69127b32f974cf9506460e7852cd25b8e4 (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.
Diffstat (limited to 'pm')
-rwxr-xr-xpm/sleep.d/98-video-quirk-db-handler2
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