aboutsummaryrefslogtreecommitdiff
path: root/init.d/hwclock.in
AgeCommit message (Collapse)Author
2017-12-14hwclock: use shell variables for configuration file pathWilliam Hubbs
This removes a reference to @SYSCONFDIR@.
2017-03-16update dependencies for clock serviceWilliam Hubbs
The clock services had a very long list of "before" dependencies that referred to other services within OpenRC. For ease of maintenance, convert these to "after clock" dependencies in the individual services.
2017-03-14Remove all occurances of 'before *' from dependenciesWilliam Hubbs
Using wildcards in dependencies causes issues when rc_parallel is set to yes because it can lead to deadlocks. All dependencies need to be explicit rather than implicit. This is the first stage of moving this direction.
2016-09-28init.d: Clean up some bad ewarn outputDoug Freed
2016-09-08hwclock: fix module load warningWilliam Hubbs
2016-08-19Deprecate automatic loading of modulesWilliam Hubbs
In the hwclock, procfs and sysfs service scripts, we automatically attempt to load the kernel modules we need before we take any action. We shouldn't do this, because there are systems which do not use kernel modules and do not have the kmod package installed. With this change, we continue to load the modules ourselves, but we warn the admin that they need to be added to /etc/conf.d/modules or built into the kernel. In the future, this automatic loading will be dropped. X-Gentoo-Bug: 342313 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=342313
2016-07-31init.d: initial service adjustments for docker supportWilliam Hubbs
Add -docker keyword to the same scripts that have -lxc keyword.
2016-07-06hwclock: always use --noadjfile if availableWilliam Hubbs
When we use the --utc or --localtime switch, also use --noadjfile if it is available. This means hwclock will not use a drift file. X-Gentoo-Bug: 584722 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=584722
2015-12-21Convert OpenRC to a centralized copyright/license structureWilliam Hubbs
In the past, OpenRC was a hybrid of a centralized and file-scope license/copyright structure. I followed the instructions from the Software Freedom Law Center [1] to convert to a Centralized structure where possible, for easier future maintenance. [1] https://softwarefreedom.org/resources/2012/ManagingCopyrightInformation.html
2015-05-01Disable service scripts for systemd-nspawnMike Gilbert
This adds the -systemd-nspawn keyword to service scripts which are not intended to run in systemd-nspawn containers. This fixes #52. X-Gentoo-Bug: 548058 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=548058
2014-07-24hwclock: always set the kernel's timezoneWilliam Hubbs
The hwclock service should set the time zone regardless of the setting of the clock_hctosys variable. This needs to be done to prevent issues when the system time is being synchronized using ntp. X-Gentoo-Bug: 434410 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=434410
2013-12-29Rename runscript to openrc-runWilliam Hubbs
This was requested by Debian, because the minicom software, which is available on Debian and other distros, has a binary named runscript. We are keeping a backward compatibility symlink for now, but this allows Debian or any other distro to safely remove the symlink. X-Gentoo-Bug: 494220 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494220
2013-02-23Fix shebangs in services to point to the correct location of runscriptAndrew Gregory
SBINDIR and BINDIR can be set independently of PREFIX. This fixes broken shebangs in service files when SBINDIR is set to something other than PREFIX/sbin Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
2012-07-26Bring Back prefix supportWilliam Hubbs
We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
2012-02-21Remove prefix supportWilliam Hubbs
I spoke with the prefix team sometime back and was told that they do not have an interest in using OpenRC on prefix systems.
2012-02-18hwclock: set the hardware clock on shutdownWilliam Hubbs
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.
2012-02-17hwclock: Clarify documentationWilliam Hubbs
The clock_hctosys and clock_systohc settings really do not have anything to do with running an ntp daemon, so remove that reference from the documentation. Reported-by: Milos Ivanovic <milosivanovic@orcon.net.nz> X-Gentoo-Bug: 401433 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=401433
2011-11-19make shell math operations style more succulentMike Frysinger
Convert the style: var=$((${var} + 1)) to: : $(( var += 1 )) The latter is easier to read imo. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-29drop useless "All rights reserved" noticeMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-14hwclock: fix typo from an earlier style commitMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-09set timezone if RC_HCTOSYS is not setWilliam Hubbs
We need to set the timezone for the system clock even when we allow the kernel to set the time. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
2011-01-24add option to disable setting the system clock on boot for linux systemsWilliam Hubbs
This commit adds the clock_hctosys option which is used to skip setting the system clock on boot and can be used with a modern linux kernel which has the CONFIG_RTC_HCTOSYS option set to y. I would like to thank Dimitris Mandalidis for the report and for the patch to baselayout-1 on which my changes to openrc are based. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
2011-01-17more whitespace cleanupMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-11-04Add support for Linux Containers, fixes #202.Roy Marples
Patch by bug reporter.
2009-07-01We should use -feature instead of nofeature.Roy Marples
This matches the ifconfig and Gentoo USE flag syntax and is hopefully easier to read. Fixes #178.
2009-06-12hwclock now sends help to stderr.Natanael Copa
2009-05-01Add (c) to CopyrightRoy Marples
2009-04-27Style.Roy Marples
2008-10-26hwclock: skip rtc checks if kernel lacks module supportMike Frysinger
Since we only use the result of the device scan to load modules, there is no point in doing the scan if the kernel doesn't support modules in the first place. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-09-27Load rtc-cmos if needed, Gentoo #235647 thanks to Robin Johnson.Roy Marples
2008-03-25Rework our folder structure so that we don't have OS specific dirs, making ↵Roy Marples
it easier to share init and conf files per OS.