]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
busybox: move hwclock init earlier in startup
authorChris Elledge <celledge@siteworx.io>
Fri, 31 Mar 2023 20:44:09 +0000 (16:44 -0400)
committerSteve Sakoman <steve@sakoman.com>
Mon, 24 Apr 2023 14:22:14 +0000 (04:22 -1000)
commit0f8cd527966f22c3fa19d6efd7ff1524f3630976
tree375bf1d566e1b1239ec17e34623431d3f0f12340
parentbbdea728c2e7f81660220ff0fd196c87886abacc
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.

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>
meta/recipes-core/busybox/busybox.inc