From 3c3bb50b6af8da49863928f520a1b90d67007a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 28 Jan 2010 01:34:40 +0100 Subject: [PATCH] Accept underscore as property name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We use underscore for some properties, like: release_date, primary_video, using_kms Signed-off-by: Rafał Miłecki --- 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 ec8c892..50224d9 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//[-.]/_}" } -- 1.6.4.2