diff options
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/.gitignore | 2 | ||||
-rw-r--r-- | init.d/Makefile | 1 | ||||
-rw-r--r-- | init.d/tmpfilesd.boot.in | 18 | ||||
-rw-r--r-- | init.d/tmpfilesd.sysinit.in | 20 |
4 files changed, 41 insertions, 0 deletions
diff --git a/init.d/.gitignore b/init.d/.gitignore index f9df045a..515348bb 100644 --- a/init.d/.gitignore +++ b/init.d/.gitignore @@ -41,3 +41,5 @@ syslogd termencoding ttys wscons +tmpfilesd.boot +tmpfilesd.sysinit diff --git a/init.d/Makefile b/init.d/Makefile index d192749e..54e5fd55 100644 --- a/init.d/Makefile +++ b/init.d/Makefile @@ -1,6 +1,7 @@ DIR= ${INITDIR} SRCS= bootmisc.in fsck.in hostname.in local.in localmount.in netmount.in \ root.in savecache.in swap.in swapfiles.in \ + tmpfilesd.boot.in tmpfilesd.sysinit.in \ swclock.in sysctl.in urandom.in ${SRCS-${OS}} BIN= ${OBJS} diff --git a/init.d/tmpfilesd.boot.in b/init.d/tmpfilesd.boot.in new file mode 100644 index 00000000..838bdd86 --- /dev/null +++ b/init.d/tmpfilesd.boot.in @@ -0,0 +1,18 @@ +#!@PREFIX@/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Released under the 2-clause BSD license. + +description="Create tmpfiles.d entries (boot)" + +depend() +{ + need localmount +} + +start() +{ + ebegin "${description/Create/Creating}" + @LIBEXECDIR@/sh/tmpfiles.sh --create ${tmpfiles_opts} + eend $? + return 0 +} diff --git a/init.d/tmpfilesd.sysinit.in b/init.d/tmpfilesd.sysinit.in new file mode 100644 index 00000000..9a0dbe47 --- /dev/null +++ b/init.d/tmpfilesd.sysinit.in @@ -0,0 +1,20 @@ +#!@PREFIX@/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Released under the 2-clause BSD license. + +description="Create tmpfiles.d entries (sysinit)" + +depend() +{ + # Convert to 'need dev' when the new udev is ready, for OpenRC 0.11 + #need dev-mount + need dev +} + +start() +{ + ebegin "${description/Create/Creating}" + @LIBEXECDIR@/sh/tmpfiles.sh --create ${tmpfiles_opts} + eend $? + return 0 +} |