summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-07-23 10:31:20 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-07-23 10:31:20 +0000
commit665184a33d628744620f83b2e0e815c5e7802c1f (patch)
tree9b673277384b1e07c20c6120e2049519a351c62e /sys-apps/kmod/files
parentpatch to correct AR use wrt Bug #477676 (diff)
downloadgentoo-2-665184a33d628744620f83b2e0e815c5e7802c1f.tar.gz
gentoo-2-665184a33d628744620f83b2e0e815c5e7802c1f.tar.bz2
gentoo-2-665184a33d628744620f83b2e0e815c5e7802c1f.zip
Import support for kmod tmpfiles.d static device node creation wrt #477856 by Alexander Vershilov
(Portage version: 2.2.0_alpha188/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'sys-apps/kmod/files')
-rw-r--r--sys-apps/kmod/files/static-nodes18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-apps/kmod/files/static-nodes b/sys-apps/kmod/files/static-nodes
new file mode 100644
index 000000000000..5df7a501e90f
--- /dev/null
+++ b/sys-apps/kmod/files/static-nodes
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+# 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/static-nodes,v 1.1 2013/07/23 10:31:20 ssuominen Exp $
+
+description="Create list of required static device nodes for the current kernel"
+
+depend() {
+ need localmount
+ before tmpdfiles-setup
+}
+
+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 $?
+}