summaryrefslogtreecommitdiff
path: root/pcr/eudev-openrc/kmod-static-nodes.initd
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-08-04 01:51:35 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-08-04 01:51:35 -0500
commit024d59ee5b3a316d0b9431f662f908b55bd350f3 (patch)
treef77815525201b8916c2c3b261544161bcfec9a8f /pcr/eudev-openrc/kmod-static-nodes.initd
parent5bef64d71a333849fc7d0c299de7f685297b4454 (diff)
downloadabslibre-024d59ee5b3a316d0b9431f662f908b55bd350f3.tar.gz
abslibre-024d59ee5b3a316d0b9431f662f908b55bd350f3.tar.bz2
abslibre-024d59ee5b3a316d0b9431f662f908b55bd350f3.zip
eudev-openrc: add package to [pcr]
Diffstat (limited to 'pcr/eudev-openrc/kmod-static-nodes.initd')
-rw-r--r--pcr/eudev-openrc/kmod-static-nodes.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/pcr/eudev-openrc/kmod-static-nodes.initd b/pcr/eudev-openrc/kmod-static-nodes.initd
new file mode 100644
index 000000000..7a3f529dc
--- /dev/null
+++ b/pcr/eudev-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 $?
+}