summaryrefslogtreecommitdiff
blob: 6e8ef66a1426dccaaeeeaab825b408a1377d37fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -Naurp splashutils-gentoo-0.1.14-orig/splash-functions.sh splashutils-gentoo-0.1.14/splash-functions.sh
--- splashutils-gentoo-0.1.14-orig/splash-functions.sh	2007-04-09 12:45:01.000000000 +0200
+++ splashutils-gentoo-0.1.14/splash-functions.sh	2007-04-09 12:46:32.000000000 +0200
@@ -207,7 +207,7 @@ splash_cache_prep() {
 
 	mount -n --move "${spl_tmpdir}" "${spl_cachedir}"
 
-	h=$(stat -c '%y' ${spl_cachedir}/deptree 2>/dev/null)
+	h=$(ls -ld --full-time ${spl_cachedir}/deptree | cut -f6,7,8 -d' ' 2>/dev/null)
 
 	# Point depscan.sh to our cachedir
 	spl_cache_depscan="yes" /sbin/depscan.sh -u
@@ -226,8 +226,8 @@ splash_cache_prep() {
 			local lastlev timestamp
 			{ read lastlev; read timestamp; } < ${spl_cachedir}/levels
 			if [[ "${lastlev}" != "${BOOTLEVEL}/${DEFAULTLEVEL}" || \
-				  "${timestamp}" != "$(stat -c '%y' /etc/runlevels/${BOOTLEVEL})/$(stat -c '%y' /etc/runlevels/${DEFAULTLEVEL})" || \
-				  "$(stat -c '%y' ${spl_cachedir}/deptree)" != "${h}" ]]; then
+				  "${timestamp}" != "$(ls -ld --full-time /etc/runlevels/${BOOTLEVEL} | cut -f6,7,8 -d' ')/$(ls -ld --full-time /etc/runlevels/${DEFAULTLEVEL} | cut -f6,7,8 -d' ')" || \
+				  "$(ls -ld --full-time ${spl_cachedir}/deptree | cut -f6,7,8 -d' ')" != "${h}" ]]; then
 				echo $(splash_svclist_update "start") > ${spl_cachedir}/svcs_start
 			fi
 		fi