diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2009-09-21 02:03:32 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2009-09-21 02:03:32 +0000 |
commit | 3be1f8b305e6de1d2c85bf10a493cd99bd0f577a (patch) | |
tree | 7df7a7b7019dba67184a4ab9a61db9630400772d /sys-apps/readahead-list/files | |
parent | Removed old, closing #284558 (diff) | |
download | gentoo-2-3be1f8b305e6de1d2c85bf10a493cd99bd0f577a.tar.gz gentoo-2-3be1f8b305e6de1d2c85bf10a493cd99bd0f577a.tar.bz2 gentoo-2-3be1f8b305e6de1d2c85bf10a493cd99bd0f577a.zip |
Make this baseline happy with OpenRC.
(Portage version: 2.2_rc40/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/readahead-list/files')
-rw-r--r-- | sys-apps/readahead-list/files/conf.d-readahead-list | 16 | ||||
-rw-r--r-- | sys-apps/readahead-list/files/init.d-readahead-list | 23 | ||||
-rw-r--r-- | sys-apps/readahead-list/files/init.d-readahead-list-early | 23 |
3 files changed, 62 insertions, 0 deletions
diff --git a/sys-apps/readahead-list/files/conf.d-readahead-list b/sys-apps/readahead-list/files/conf.d-readahead-list new file mode 100644 index 000000000000..15e8ce023585 --- /dev/null +++ b/sys-apps/readahead-list/files/conf.d-readahead-list @@ -0,0 +1,16 @@ +#!/sbin/runscript +# Copyright 2005 Robin H. Johnson <robbat2@orbis-terrarum.net> +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/files/conf.d-readahead-list,v 1.1 2009/09/21 02:03:32 robbat2 Exp $ + +# this list is intended for usage very early +READAHEAD_LIST_exec_sbin_rc="/etc/readahead-list/exec_sbin_rc" + +# per-runlevel +READAHEAD_LIST_runlevel_boot="/etc/readahead-list/runlevel-boot" +READAHEAD_LIST_runlevel_default="/etc/readahead-list/runlevel-default" + +READAHEAD_LIST_call_early="${!READAHEAD_LIST_exec_sbin_rc} ${!READAHEAD_LIST_runlevel_boot}" +READAHEAD_LIST_call_main="${!READAHEAD_LIST_runlevel_default}" + +# vim: ts=4 sw=4 diff --git a/sys-apps/readahead-list/files/init.d-readahead-list b/sys-apps/readahead-list/files/init.d-readahead-list new file mode 100644 index 000000000000..77a70959d104 --- /dev/null +++ b/sys-apps/readahead-list/files/init.d-readahead-list @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 2005 Robin H. Johnson <robbat2@orbis-terrarum.net> +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/files/init.d-readahead-list,v 1.1 2009/09/21 02:03:32 robbat2 Exp $ + +depend() { + after localmount + # this should start as early as possible + # we can't do 'before *' as that breaks it + before clock bootmisc consolefont keymaps rmnologin serial urandom +} + +start() { + # force reading + source /etc/conf.d/readahead-list + + f="${READAHEAD_LIST_call_main}" + ebegin "readahead(2): ${f}" + /sbin/readahead-list ${f} + eend $? +} + +# vim: ts=4 sw=4 diff --git a/sys-apps/readahead-list/files/init.d-readahead-list-early b/sys-apps/readahead-list/files/init.d-readahead-list-early new file mode 100644 index 000000000000..2aeaa1f745f2 --- /dev/null +++ b/sys-apps/readahead-list/files/init.d-readahead-list-early @@ -0,0 +1,23 @@ +#!/sbin/runscript +# Copyright 2005 Robin H. Johnson <robbat2@orbis-terrarum.net> +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/readahead-list/files/init.d-readahead-list-early,v 1.1 2009/09/21 02:03:32 robbat2 Exp $ + + +depend() { + after checkroot + # this should start as early as possible + # we can't do 'before *' as that breaks it + before hostname modules domainname crypto-loop checkfs localmount +} + +start() { + # force reading + source /etc/conf.d/readahead-list + f="${READAHEAD_LIST_call_early}" + ebegin "readahead(2): ${f}" + /sbin/readahead-list ${f} + eend $? +} + +# vim: ts=4 sw=4 |