summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-02-02 17:40:14 -0800
committerMichael Biebl <mbiebl@gmail.com>2010-02-03 16:30:49 +0100
commit665bad4f548f19ab8706026c646e44cdab8c37f9 (patch)
treef9141af15e1c9dea00cfd99374eed9daa55974ac /pm
parent8e4dc224482476b5f186375bedf1e4c809e4b727 (diff)
fix DMI attribute matching
canonicalize_dmivar() refused the valid property "system.firmware.release_date" because of a missing '_' in the character filter.
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 ec8c892..17a1cbc 100755
--- a/pm/sleep.d/98-video-quirk-db-handler
+++ b/pm/sleep.d/98-video-quirk-db-handler
@@ -160,7 +160,7 @@ halget() {
}
canonicalize_dmivar() {
- [[ $1 =~ ^[a-z.-]+$ && $possible_system_properties = *$1* ]] || return 1
+ [[ $1 =~ ^[a-z._-]+$ && $possible_system_properties = *$1* ]] || return 1
echo "${1//[-.]/_}"
}