summaryrefslogtreecommitdiff
path: root/pcr/openrc-core/kmod-static-nodes
diff options
context:
space:
mode:
authorfreaj <freaj@riseup.net>2015-03-23 11:34:25 +0100
committerfreaj <freaj@riseup.net>2015-03-23 11:34:25 +0100
commitf8e4235893b9122cffa0400654a2a9b1d1146a11 (patch)
tree8315e075d548f01a229471f6dcaa1ff55f96c024 /pcr/openrc-core/kmod-static-nodes
parent0161d0dd7de853da1f86bb3b6f27adf25977c785 (diff)
openrc-core: add new package to [pcr]
Diffstat (limited to 'pcr/openrc-core/kmod-static-nodes')
-rw-r--r--pcr/openrc-core/kmod-static-nodes18
1 files changed, 18 insertions, 0 deletions
diff --git a/pcr/openrc-core/kmod-static-nodes b/pcr/openrc-core/kmod-static-nodes
new file mode 100644
index 000000000..71bcf9c45
--- /dev/null
+++ b/pcr/openrc-core/kmod-static-nodes
@@ -0,0 +1,18 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/kmod/files/Attic/kmod-static-nodes,v 1.2 2014/09/21 10:59:57 ssuominen dead $
+
+description="Create list of required static device nodes for the current kernel"
+
+depend() {
+ after dev-mount
+ before tmpfiles.dev dev
+}
+
+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 $?
+}