summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Elledge <celledge@siteworx.io>2023-03-31 16:44:09 -0400
committerSteve Sakoman <steve@sakoman.com>2023-04-28 04:01:15 -1000
commit3eaa4cef1f072d2768b0b1fd46850701286da114 (patch)
treed1572150b1df147bb8b2eb2493c5f18c63ee546f
parenta3e1b785b6184be48267fe0b852f20741c908e85 (diff)
downloadpoky-3eaa4cef1f072d2768b0b1fd46850701286da114.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: 0f8cd527966f22c3fa19d6efd7ff1524f3630976) 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> (cherry picked from commit 3012bac35ada9a9f66d9e6e2fecaee09527b9d44) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-core/busybox/busybox.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 62dc839245..f5d7c3f9c8 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
35INITSCRIPT_NAME:${PN}-httpd = "busybox-httpd" 35INITSCRIPT_NAME:${PN}-httpd = "busybox-httpd"
36INITSCRIPT_NAME:${PN}-hwclock = "hwclock.sh" 36INITSCRIPT_NAME:${PN}-hwclock = "hwclock.sh"
37INITSCRIPT_PARAMS:${PN}-hwclock = "start 40 S . stop 20 0 1 6 ."
37INITSCRIPT_NAME:${PN}-mdev = "mdev" 38INITSCRIPT_NAME:${PN}-mdev = "mdev"
38INITSCRIPT_PARAMS:${PN}-mdev = "start 04 S ." 39INITSCRIPT_PARAMS:${PN}-mdev = "start 04 S ."
39INITSCRIPT_NAME:${PN}-syslog = "syslog" 40INITSCRIPT_NAME:${PN}-syslog = "syslog"