aboutsummaryrefslogtreecommitdiff
path: root/init.d/tmpfiles.dev.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-07-25 12:33:03 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-07-25 13:53:44 -0500
commit35f2f1ec73aa6754764d573ea3e1cce938b3ee9a (patch)
treeba3884ebd71255085b86a2514d7e29de509b4c28 /init.d/tmpfiles.dev.in
parente9189cd8a24b5614f3e82aec4a779e4d90656b1e (diff)
Introduce the tmpfiles.dev service
This service handles setting up the tmpfiles entries for the /dev directory for Linux systems which needs to be run in the sysinit runlevel.
Diffstat (limited to 'init.d/tmpfiles.dev.in')
-rw-r--r--init.d/tmpfiles.dev.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/init.d/tmpfiles.dev.in b/init.d/tmpfiles.dev.in
new file mode 100644
index 00000000..477fafa6
--- /dev/null
+++ b/init.d/tmpfiles.dev.in
@@ -0,0 +1,21 @@
+#!@SBINDIR@/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Released under the 2-clause BSD license.
+
+description="set up tmpfiles.d entries"
+
+depend()
+{
+ use dev-mount
+ before dev
+ keyword -prefix -vserver
+}
+
+start()
+{
+ ebegin "setting up tmpfiles.d entries for /dev"
+ @LIBEXECDIR@/sh/tmpfiles.sh --prefix=/dev --create --remove \
+ ${tmpfiles_opts}
+ eend $?
+ return 0
+}