[PATCHv3 1/3] base-files: use hwclock --systz

Hannu Nyman hannu.nyman at iki.fi
Mon Feb 1 11:17:09 EST 2021


Rosen Penev kirjoitti 1.2.2021 klo 2.15:
> The date -k patch is non standard and will be removed in the next
> commit.
>
> ...
> --- a/package/base-files/files/etc/init.d/system
> +++ b/package/base-files/files/etc/init.d/system
> @@ -27,7 +27,7 @@ system_config() {
>   		ln -sf "/usr/share/zoneinfo/$zonename" /tmp/localtime && rm -f /tmp/TZ
>   
>   	# apply timezone to kernel
> -	busybox date -k
> +	hwclock -u --systz


As discussed in connection of the musl update PR ( starting from 
https://github.com/openwrt/openwrt/pull/3004#issuecomment-764479005 ), the 
addition of "-u" to the hwclock options seems to fix the strange timestamps 
in early boot system logs that I noticed earlier.

I think that in the current form the busybox update to 1.33.0 works ok. I 
have been using it in my own builds since early January for ath79/WNDR3700, 
ipq806x/R7800 and mvebu/WRT3200ACM.

Would be great to have it in the tree before the 21.0x branching.


PS. this patch series is already actually v4, as patch v3 was sent on 7 Jan 2021.




More information about the openwrt-devel mailing list