lede/package/base-files/files/etc/init.d
Rosen Penev d8f60f0b7f base-files: fix zoneinfo support
The system init script currently sets /tmp/localinfo when zoneinfo is
populated. However, zoneinfo has spaces in it whereas the actual files
have _ instead of spaces. This made the if condition never return true.

Example failure when removing the if condition:

/tmp/localtime -> /usr/share/zoneinfo/America/Los Angeles

This file does not exist. America/Los_Angeles does.

Ran through shfmt -w -ci -bn -sr -s

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-12-08 17:35:37 +08:00
..
boot base-files: call "sync" after initial setup 2022-12-08 17:32:22 +08:00
done Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
gpio_switch Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
led add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
sysctl sync with OpenWrt v18.06.1 stable new R8.1 version 2018-08-23 17:40:23 +08:00
sysfixtime update source 2017-09-06 19:19:45 +08:00
system base-files: fix zoneinfo support 2022-12-08 17:35:37 +08:00
umount Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00