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 1Ryph9-0001Va-8r for garchives@archives.gentoo.org; Sat, 18 Feb 2012 19:11:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6F54E0F24; Sat, 18 Feb 2012 19:11:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 98731E0F24 for ; Sat, 18 Feb 2012 19:11:30 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0C7241B4018 for ; Sat, 18 Feb 2012 19:11:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id BD62AE5404 for ; Sat, 18 Feb 2012 19:11:28 +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: <1329590959.04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb.WilliamH@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/, conf.d/ X-VCS-Repository: proj/openrc X-VCS-Files: conf.d/hwclock init.d/hwclock.in X-VCS-Directories: init.d/ conf.d/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb X-VCS-Branch: master Date: Sat, 18 Feb 2012 19:11:28 +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: a1cf0bc3-4d79-4641-ad90-5db0ef0ff993 X-Archives-Hash: a1e7ab1ac01977797d4ef43c54dbb6f9 commit: 04afaa3c03ac7400c06a6b5f17cee99cdd4bfaeb Author: William Hubbs gentoo org> AuthorDate: Fri Feb 17 21:02:10 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Sat Feb 18 18:49:19 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D04afaa3c hwclock: set the hardware clock on shutdown Previously, the default on linux systems was to not set the hardware clock to match the system clock during shutdown. This changes that default to be consistent with *bsd and swclock. --- conf.d/hwclock | 6 +++--- init.d/hwclock.in | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf.d/hwclock b/conf.d/hwclock index 448c2d9..230d81d 100644 --- a/conf.d/hwclock +++ b/conf.d/hwclock @@ -9,9 +9,9 @@ clock=3D"UTC" # running a modern kernel with CONFIG_RTC_HCTOSYS set to y. #clock_hctosys=3D"YES" =20 -# If you want to set the hardware clock to the current system time -# (software clock) during shutdown, set this to yes. -#clock_systohc=3D"NO" +# If you do not want to set the hardware clock to the current system +# time (software clock) during shutdown, set this to no. +#clock_systohc=3D"YES" =20 # If you wish to pass any other arguments to hwclock during bootup, # you may do so here. Alpha users may wish to use --arc or --srm here. diff --git a/init.d/hwclock.in b/init.d/hwclock.in index 7f2323a..eb44f62 100644 --- a/init.d/hwclock.in +++ b/init.d/hwclock.in @@ -111,7 +111,7 @@ stop() { # Don't tweak the hardware clock on LiveCD halt. [ -n "$CDBOOT" ] && return 0 - yesno ${clock_systohc:-NO} || return 0 + yesno ${clock_systohc:-YES} || return 0 =20 local retval=3D0 errstr=3D"" setupopts