2010-08-18 17:03:03 -07:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 15:20:58 -07: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-18 17:03:03 -07:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Load Kernel Modules
|
2012-05-31 07:00:34 -07:00
|
|
|
Documentation=man:systemd-modules-load.service(8) man:modules-load.d(5)
|
2010-08-18 17:03:03 -07:00
|
|
|
DefaultDependencies=no
|
|
|
|
Conflicts=shutdown.target
|
2010-11-19 07:24:21 -08:00
|
|
|
Before=sysinit.target shutdown.target
|
2012-04-22 04:39:18 -07:00
|
|
|
ConditionCapability=CAP_SYS_MODULE
|
2011-04-30 14:08:15 -07: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-24 23:48:50 -07:00
|
|
|
ConditionKernelCommandLine=|modules-load
|
|
|
|
ConditionKernelCommandLine=|rd.modules-load
|
2010-08-18 17:03:03 -07:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2010-08-19 18:26:15 -07:00
|
|
|
RemainAfterExit=yes
|
2010-08-18 17:03:03 -07:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-modules-load
|
2015-04-16 18:41:18 -07:00
|
|
|
TimeoutSec=90s
|