2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2014-06-13 11:10:30 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Rebuild Hardware Database
|
2014-12-15 23:48:24 +00:00
|
|
|
Documentation=man:hwdb(7) man:systemd-hwdb(8)
|
2022-09-15 13:54:18 +00:00
|
|
|
|
2014-06-13 11:10:30 +00:00
|
|
|
ConditionNeedsUpdate=/etc
|
2021-05-16 09:55:36 +00:00
|
|
|
ConditionPathExists=|!{{UDEVLIBEXECDIR}}/hwdb.bin
|
2014-10-17 13:01:01 +00:00
|
|
|
ConditionPathExists=|/etc/udev/hwdb.bin
|
|
|
|
ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
|
2014-06-13 11:10:30 +00:00
|
|
|
|
2022-09-15 13:54:18 +00:00
|
|
|
DefaultDependencies=no
|
|
|
|
After=systemd-remount-fs.service
|
|
|
|
Before=sysinit.target systemd-update-done.service
|
|
|
|
Conflicts=shutdown.target
|
|
|
|
Before=shutdown.target
|
|
|
|
|
2014-06-13 11:10:30 +00:00
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2019-12-18 08:14:57 +00:00
|
|
|
ExecStart=systemd-hwdb update
|
2015-04-17 01:41:18 +00:00
|
|
|
TimeoutSec=90s
|