#!/sbin/runscript # Copyright 2005 Robin H. Johnson # Distributed under the terms of the GNU General Public License v2 # $Header: $ rl_type="${SVCNAME#*.}" [ "${rl_type}" = "readahead-list" ] && rl_type="main" eval rl_list="\$READAHEAD_LIST_call_${rl_type}" depend() { if [ "${rl_type}" = "early" ] ; then before * else need localmount # this should start as early as possible # we can't do 'before *' as that breaks it before bootmisc consolefont keymaps rmnologin serial urandom fi } start() { ebegin "readahead($rl_type): ${rl_list}" cmd="/sbin/readahead-list ${rl_list}" IONICE=$(which ionice) if [ -x "$IONICE" ] ; then $IONICE -c3 ${cmd} & else ${cmd} & fi eend $? } # vim: ts=4 sw=4