View | Details | Raw Unified
Collapse All | Expand All

(-) functions.sh.orig (-1 / +37 lines)
 Lines 162-167    Link Here 
	try mount -n ${mntcmd:--t proc proc /proc}
	try mount -n ${mntcmd:--t proc proc /proc}
	eend $?
	eend $?
	# start logging here
	start_boot_profile
	# Read off the kernel commandline to see if there's any special settings
	# Read off the kernel commandline to see if there's any special settings
	# especially check to see if we need to set the  CDBOOT environment variable
	# especially check to see if we need to set the  CDBOOT environment variable
	# Note: /proc MUST be mounted
	# Note: /proc MUST be mounted
 Lines 402-407    Link Here 
		local retval=
		local retval=
		local service=$1
		local service=$1
		process_name "${service}"
		
		source "/etc/init.d/${service}" || eerror "Failed to source /etc/init.d/${service}"
		source "/etc/init.d/${service}" || eerror "Failed to source /etc/init.d/${service}"
		retval=$?
		retval=$?
		[ "${retval}" -ne 0 ] && return "${retval}"
		[ "${retval}" -ne 0 ] && return "${retval}"
 Lines 502-507    Link Here 
	# Now that the dependency cache are up to date, make sure these
	# Now that the dependency cache are up to date, make sure these
	# are marked as started ...
	# are marked as started ...
	(
	(
		process_name mark "${x}" started
		
		# Needed for mark_service_started()
		# Needed for mark_service_started()
		source "${svclib}/sh/rc-services.sh"
		source "${svclib}/sh/rc-services.sh"
		
		
 Lines 872-877    Link Here 
# Runlevel end, so clear stale fail list
# Runlevel end, so clear stale fail list
rm -rf "${svcdir}/failed" &>/dev/null
rm -rf "${svcdir}/failed" &>/dev/null
[ -z "${BOOT}" ] && stop_boot_profile
# If we were in the boot runlevel, it is done now ...
# If we were in the boot runlevel, it is done now ...
[ -n "${BOOT}" ] && unset BOOT
[ -n "${BOOT}" ] && unset BOOT
 Lines 415-421    Link Here 
			mark_service_started "$1"
			mark_service_started "$1"
			splash "svc_started" "$1" "0"
			splash "svc_started" "$1" "0"
		else
		else
			(. /sbin/runscript.sh "/etc/init.d/$1" start)
			(
				process_name "$1"
				
				. /sbin/runscript.sh "/etc/init.d/$1" start
			)
			retval="$?"
			retval="$?"
			splash "svc_started" "$1" "${retval}"
			splash "svc_started" "$1" "${retval}"
			return "${retval}"
			return "${retval}"
 Lines 63-68    Link Here 
# This will override the splash() function...
# This will override the splash() function...
[ -f /sbin/splash-functions.sh ] && source /sbin/splash-functions.sh
[ -f /sbin/splash-functions.sh ] && source /sbin/splash-functions.sh
# void process_name(...)
#
# Notify bootchart about a subshell and what name should 
# be used for it
process_name() {
	return 0
}
start_boot_profile() {
	return 0
}
stop_boot_profile()
{
	return 0
}
# This will override the process_name, start_boot_profile and stop_boot_profile
if [[ ${RC_USE_BOOTCHART} = "yes" ]] && [[ -f /sbin/boot_profile_functions.sh ]] ; then
	source /sbin/boot_profile_functions.sh
fi
# void get_bootconfig()
# void get_bootconfig()
#
#
#    Get the BOOTLEVEL and SOFTLEVEL by setting
#    Get the BOOTLEVEL and SOFTLEVEL by setting