2017-11-19 00:35:03 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
2014-06-13 19:10:30 +08: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-16 07:48:24 +08:00
|
|
|
Documentation=man:hwdb(7) man:systemd-hwdb(8)
|
2014-06-13 19:10:30 +08:00
|
|
|
DefaultDependencies=no
|
|
|
|
Conflicts=shutdown.target
|
2014-08-27 03:17:22 +08:00
|
|
|
After=systemd-remount-fs.service
|
2014-06-13 19:10:30 +08:00
|
|
|
Before=sysinit.target shutdown.target systemd-update-done.service
|
|
|
|
ConditionNeedsUpdate=/etc
|
2014-10-17 21:01:01 +08:00
|
|
|
ConditionPathExists=|!@udevlibexecdir@/hwdb.bin
|
|
|
|
ConditionPathExists=|/etc/udev/hwdb.bin
|
|
|
|
ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
|
2014-06-13 19:10:30 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2014-12-16 07:48:24 +08:00
|
|
|
ExecStart=@rootbindir@/systemd-hwdb update
|
2015-04-17 09:41:18 +08:00
|
|
|
TimeoutSec=90s
|