diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-22 13:08:26 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-22 13:09:10 +0000 |
commit | 73b8c4c8bdf20f2ad9e727d51e650fc10ab11c60 (patch) | |
tree | 822c46c3ff28bad3a4226ea6028067d7a663ff70 /main/kmod/kmod-static-nodes.initd | |
parent | 180f0e17008daacf60da00602fd5928aa2fc6a2e (diff) | |
download | aports-73b8c4c8bdf20f2ad9e727d51e650fc10ab11c60.tar.bz2 aports-73b8c4c8bdf20f2ad9e727d51e650fc10ab11c60.tar.xz |
main/kmod: add init.d script for static nodes
from gentoo
Diffstat (limited to 'main/kmod/kmod-static-nodes.initd')
-rw-r--r-- | main/kmod/kmod-static-nodes.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/main/kmod/kmod-static-nodes.initd b/main/kmod/kmod-static-nodes.initd new file mode 100644 index 0000000000..ef8912f60b --- /dev/null +++ b/main/kmod/kmod-static-nodes.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 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-r1,v 1.1 2014/07/11 12:28:07 ssuominen Exp $ + +description="Create list of required static device nodes for the current kernel" + +depend() { + after dev-mount + before tmpfiles.dev dev + keyword -lxc +} + +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 $? +} |