Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 85565 | Differences between
and this patch

Collapse All | Expand All

(-)/sbin/splash-functions.sh.orig (-5 / +9 lines)
Lines 193-204 Link Here
193
	#  - out deptree was out of date
193
	#  - out deptree was out of date
194
	#  - we're booting with a different boot/default level than the last time
194
	#  - we're booting with a different boot/default level than the last time
195
	#  - one of the runlevel dirs has been modified since the last boot
195
	#  - one of the runlevel dirs has been modified since the last boot
196
	if [[ ! -e ${spl_cachedir}/levels || \
196
	if [[ ! -e ${spl_cachedir}/levels || ! -e ${spl_cachedir}/svcs_start ]]; then
197
		  ! -e ${spl_cachedir}/svcs_start || \
198
		 "$(head -n1 ${spl_cachedir}/levels)" != "${BOOTLEVEL}/${DEFAULTLEVEL}" || \
199
		 "$(tail -n1 ${spl_cachedir}/levels)" != "$(stat -c '%y' /etc/runlevels/${BOOTLEVEL})/$(stat -c '%y' /etc/runlevels/${DEFAULTLEVEL})" || \
200
		 "$(stat -c '%y' ${spl_cachedir}/deptree)" != "${h}" ]]; then
201
		echo $(splash_svclist_update "start") > ${spl_cachedir}/svcs_start
197
		echo $(splash_svclist_update "start") > ${spl_cachedir}/svcs_start
198
	else
199
		local last, timestamp
200
		{ read last; read timestamp;  } < ${spl_cachedir}/levels
201
		if [[ "${last}" != "${BOOTLEVEL}/${DEFAULTLEVEL}" || \
202
		      "${timestamp}" != "$(stat -c '%y' /etc/runlevels/${BOOTLEVEL})/$(stat -c '%y' /etc/runlevels/${DEFAULTLEVEL})" || \
203
		      "$(stat -c '%y' ${spl_cachedir}/deptree)" != "${h}" ]]; then
204
			echo $(splash_svclist_update "start") > ${spl_cachedir}/svcs_start
205
		fi
202
	fi
206
	fi
203
207
204
	return 0
208
	return 0

Return to bug 85565