2020-11-09 12:23:58 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-19 00:35:03 +08:00
|
|
|
#
|
2010-08-19 08:03:03 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 06:20:58 +08:00
|
|
|
# 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
|
2010-08-19 08:03:03 +08:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Load Kernel Modules
|
2012-05-31 22:00:34 +08:00
|
|
|
Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5)
|
2010-08-19 08:03:03 +08:00
|
|
|
DefaultDependencies=no
|
|
|
|
Conflicts=shutdown.target
|
2010-11-19 23:24:21 +08:00
|
|
|
Before=sysinit.target shutdown.target
|
2012-04-22 19:39:18 +08:00
|
|
|
ConditionCapability=CAP_SYS_MODULE
|
2011-05-01 05:08:15 +08:00
|
|
|
ConditionDirectoryNotEmpty=|/lib/modules-load.d
|
|
|
|
ConditionDirectoryNotEmpty=|/usr/lib/modules-load.d
|
|
|
|
ConditionDirectoryNotEmpty=|/usr/local/lib/modules-load.d
|
|
|
|
ConditionDirectoryNotEmpty=|/etc/modules-load.d
|
|
|
|
ConditionDirectoryNotEmpty=|/run/modules-load.d
|
2012-07-25 14:48:50 +08:00
|
|
|
ConditionKernelCommandLine=|modules-load
|
2024-03-17 00:10:14 +08:00
|
|
|
ConditionKernelCommandLine=|modules_load
|
2012-07-25 14:48:50 +08:00
|
|
|
ConditionKernelCommandLine=|rd.modules-load
|
2024-03-17 00:10:14 +08:00
|
|
|
ConditionKernelCommandLine=|rd.modules_load
|
2010-08-19 08:03:03 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2010-08-20 09:26:15 +08:00
|
|
|
RemainAfterExit=yes
|
2023-06-12 09:15:19 +08:00
|
|
|
ExecStart={{LIBEXECDIR}}/systemd-modules-load
|
2015-04-17 09:41:18 +08:00
|
|
|
TimeoutSec=90s
|