summaryrefslogtreecommitdiff
path: root/pcr/udev-openrc/kmod-static-nodes.initd
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2016-03-18 20:20:54 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2016-03-18 20:20:54 -0500
commit27d7c91f4cbfc3e774be535855ba4b7427aa623b (patch)
tree7c77ab86912e6c4ff0fa1058c52b59b23adc8ee0 /pcr/udev-openrc/kmod-static-nodes.initd
parent6fee4a09ee12c43bd0bc9f702aec4b7dd0d53a08 (diff)
downloadabslibre-27d7c91f4cbfc3e774be535855ba4b7427aa623b.tar.gz
abslibre-27d7c91f4cbfc3e774be535855ba4b7427aa623b.tar.bz2
abslibre-27d7c91f4cbfc3e774be535855ba4b7427aa623b.zip
udev-openrc: clean up build
Diffstat (limited to 'pcr/udev-openrc/kmod-static-nodes.initd')
-rw-r--r--pcr/udev-openrc/kmod-static-nodes.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/pcr/udev-openrc/kmod-static-nodes.initd b/pcr/udev-openrc/kmod-static-nodes.initd
new file mode 100644
index 000000000..7a3f529dc
--- /dev/null
+++ b/pcr/udev-openrc/kmod-static-nodes.initd
@@ -0,0 +1,19 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="Create list of required static device nodes for the current kernel"
+
+depend() {
+ after dev-mount
+ before tmpfiles.dev dev
+ keyword -lxc -systemd-nspawn
+}
+
+start() {
+ ebegin "Creating list of required static device nodes for the current kernel"
+ checkpath -q -d /run/tmpfiles.d
+ kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
+ eend $?
+}