hwdb: actually search /run/udev/hwdb.d

The documentation claims hwdb entries may be placed in the volatile
/run/udev/hwdb.d directory but nothing actually looked at it.
This commit is contained in:
Peter Hutterer 2015-06-09 10:58:06 +10:00
parent 02776da6ec
commit 03dfe7b749
3 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ static const char *arg_root = "";
static const char * const conf_file_dirs[] = {
"/etc/udev/hwdb.d",
"/run/udev/hwdb.d",
UDEVLIBEXECDIR "/hwdb.d",
NULL
};

View File

@ -37,6 +37,7 @@
static const char * const conf_file_dirs[] = {
"/etc/udev/hwdb.d",
"/run/udev/hwdb.d",
UDEVLIBEXECDIR "/hwdb.d",
NULL
};

View File

@ -16,6 +16,7 @@ ConditionNeedsUpdate=/etc
ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
ConditionPathExists=|/etc/udev/hwdb.bin
ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
ConditionDirectoryNotEmpty=|/run/udev/hwdb.d/
[Service]
Type=oneshot