diff options
author | Chris Elledge <celledge@siteworx.io> | 2023-03-31 16:44:09 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-05 17:26:53 +0100 |
commit | 18e45a985835189d2a3ee9d7d2841f9b0afdb140 (patch) | |
tree | e401f046cfa51c8c887c47dd8ea18b3243379963 /meta/recipes-core/busybox | |
parent | 53a1ad0c88564337ac3416d00c20585107adfce2 (diff) | |
download | poky-18e45a985835189d2a3ee9d7d2841f9b0afdb140.tar.gz |
busybox: move hwclock init earlier in startup
hwclock.sh had default update-rc parameters which made it run after
other tasks that work with the clock such as connman. This causes a
time obtained by NTP to be clobbered by a potentially incorrect time
in the RTC.
Provide non-default INITSCRIPT_PARAMS to have hwclock.sh run during
the rc startup before runlevel initscripts start.
(From OE-Core rev: 3012bac35ada9a9f66d9e6e2fecaee09527b9d44)
Signed-off-by: Chris Elledge <celledge@siteworx.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/busybox')
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index 4569acd475..582d87949e 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc | |||
@@ -34,6 +34,7 @@ INITSCRIPT_PACKAGES = "${PN}-httpd ${PN}-syslog ${PN}-udhcpd ${PN}-mdev ${PN}-hw | |||
34 | 34 | ||
35 | INITSCRIPT_NAME:${PN}-httpd = "busybox-httpd" | 35 | INITSCRIPT_NAME:${PN}-httpd = "busybox-httpd" |
36 | INITSCRIPT_NAME:${PN}-hwclock = "hwclock.sh" | 36 | INITSCRIPT_NAME:${PN}-hwclock = "hwclock.sh" |
37 | INITSCRIPT_PARAMS:${PN}-hwclock = "start 40 S . stop 20 0 1 6 ." | ||
37 | INITSCRIPT_NAME:${PN}-mdev = "mdev" | 38 | INITSCRIPT_NAME:${PN}-mdev = "mdev" |
38 | INITSCRIPT_PARAMS:${PN}-mdev = "start 04 S ." | 39 | INITSCRIPT_PARAMS:${PN}-mdev = "start 04 S ." |
39 | INITSCRIPT_NAME:${PN}-syslog = "syslog" | 40 | INITSCRIPT_NAME:${PN}-syslog = "syslog" |