From 3688c851636c9458eb88c7469bb374e5f6d0f9de Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 28 Jul 2011 09:12:35 -0500 Subject: swclock: select a default reference file If $RC_SVCDIR/shutdowntime does not exist, we need a default reference file. It is safe to use @PREFIX@/sbin/runscript for this purpose. Reported-By: Robin H. Johnson X-Gentoo-Bug: 376249 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=376249 --- init.d/swclock.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.d/swclock.in b/init.d/swclock.in index 75f1c79f..077f258d 100644 --- a/init.d/swclock.in +++ b/init.d/swclock.in @@ -16,7 +16,9 @@ depend() start() { ebegin "Setting the local clock based on last shutdown time" - swclock --warn + if ! swclock 2> /dev/null; then + swclock --warn @PREFIX@/sbin/runscript + fi eend $? } -- cgit v1.2.3