From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QmRd8-0000ef-Fd for garchives@archives.gentoo.org; Thu, 28 Jul 2011 14:32:06 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7163821C0A9; Thu, 28 Jul 2011 14:31:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 428E621C0A9 for ; Thu, 28 Jul 2011 14:31:58 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C68B91B4007 for ; Thu, 28 Jul 2011 14:31:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id F3FA48003D for ; Thu, 28 Jul 2011 14:31:55 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <3688c851636c9458eb88c7469bb374e5f6d0f9de.WilliamH@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/swclock.in X-VCS-Directories: init.d/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 3688c851636c9458eb88c7469bb374e5f6d0f9de Date: Thu, 28 Jul 2011 14:31:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d9aba8402ca1749c213c182cfd571e46 commit: 3688c851636c9458eb88c7469bb374e5f6d0f9de Author: William Hubbs gentoo org> AuthorDate: Thu Jul 28 14:12:35 2011 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Jul 28 14:21:29 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D3688c851 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 gentoo.org> X-Gentoo-Bug: 376249 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=3D376249 --- init.d/swclock.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/init.d/swclock.in b/init.d/swclock.in index 75f1c79..077f258 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 $? } =20