#!/sbin/runscript # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfsmount.initd,v 1.7 2007/12/30 19:25:18 vapier Exp $ start() { if type runprofiles >/dev/null ; then ebegin "Running common runprofiles function" runprofiles eend $? || return $? fi local dir="/etc/runprofiles/${RUNPROFILES_RUNLEVEL:-${RC_RUNLEVEL}}" [ ! -e "${dir}" ] && return 0 if type runprofiles_pre_sync >/dev/null ; then ebegin "Running pre sync function" runprofiles_pre_sync eend $? || return $? fi ebegin "Syncing files from ${dir} to /" cp -pPR "${dir}"/* / ret=$? eend $ret if type runprofiles_post_sync >/dev/null ; then ebegin "Running post sync function" runprofiles_post_sync eend $? || return $? fi return ${ret} }