diff options
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/Makefile | 2 | ||||
-rw-r--r-- | init.d/tmpfiles.dev.in | 21 | ||||
-rw-r--r-- | init.d/tmpfiles.setup.in | 3 |
3 files changed, 24 insertions, 2 deletions
diff --git a/init.d/Makefile b/init.d/Makefile index e7e2d861..fc55b3ec 100644 --- a/init.d/Makefile +++ b/init.d/Makefile @@ -28,7 +28,7 @@ SRCS-FreeBSD+= adjkerntz.in devd.in dumpon.in encswap.in ipfw.in \ NET_LO-Linux= net.lo SRCS-Linux= devfs.in dmesg.in hwclock.in consolefont.in keymaps.in \ killprocs.in modules.in mount-ro.in mtab.in numlock.in \ - procfs.in sysfs.in termencoding.in + procfs.in sysfs.in termencoding.in tmpfiles.dev.in NET_LO-NetBSD= net.lo0 # Generic BSD scripts 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 +} diff --git a/init.d/tmpfiles.setup.in b/init.d/tmpfiles.setup.in index 81bc3696..fd9b0154 100644 --- a/init.d/tmpfiles.setup.in +++ b/init.d/tmpfiles.setup.in @@ -12,7 +12,8 @@ depend() start() { ebegin "setting up tmpfiles.d entries" - @LIBEXECDIR@/sh/tmpfiles.sh --create --remove ${tmpfiles_opts} + @LIBEXECDIR@/sh/tmpfiles.sh --exclude-prefix=/dev --create --remove \ + ${tmpfiles_opts} eend $? return 0 } |