summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-08-09 19:08:23 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-08-09 19:08:23 +0000
commit11e9a12f4c6729596c47d2d7660d2118f2c45f2f (patch)
treefda0b88c3e21de791dd87afe2d272c908ac6cfee /sys-apps/kmod/files
parentdropped polkit-111 in favour of -r1 now that spidermonkey-17 is unmasked, as ... (diff)
downloadhistorical-11e9a12f4c6729596c47d2d7660d2118f2c45f2f.tar.gz
historical-11e9a12f4c6729596c47d2d7660d2118f2c45f2f.tar.bz2
historical-11e9a12f4c6729596c47d2d7660d2118f2c45f2f.zip
Rename static-nodes init script to kmod-static-nodes as suggested by WilliamH earlier. Support OpenRC 0.12 and the new tmpfiles /dev support. Proper revision bump is required after OpenRC 0.12 is in tree.
Package-Manager: portage-2.2.0_alpha196/cvs/Linux x86_64 Manifest-Sign-Key: 0x4868F14D
Diffstat (limited to 'sys-apps/kmod/files')
-rw-r--r--sys-apps/kmod/files/kmod-static-nodes18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-apps/kmod/files/kmod-static-nodes b/sys-apps/kmod/files/kmod-static-nodes
new file mode 100644
index 000000000000..43d843111314
--- /dev/null
+++ b/sys-apps/kmod/files/kmod-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/kmod-static-nodes,v 1.1 2013/08/09 19:08:18 ssuominen Exp $
+
+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 $?
+}