Entware applications that load at boot are not picking up the TZ despite following the directions in https://github.com/Entware/Entware/wiki/Using-time-zones. I have the following in /jffs/post-mount:
And it's working and firing before rc.unslung runs, but still DNSCrypt-proxy launches with the wrong timezone.
If I restart dnscrypt-proxy it picks up the timezone correctly. It's just at boot time that it doesn't. The only thing I can think of is that at boot it's starting before ntpd updates the time, and restarts are after.
Code:
logger "$0:" "Setting up timezone for Entware..."
if [ ! -f /etc/localtime -a -f /opt/share/zoneinfo/US/Pacific ]; then
ln -sf /opt/share/zoneinfo/US/Pacific /etc/localtime
fi
And it's working and firing before rc.unslung runs, but still DNSCrypt-proxy launches with the wrong timezone.
Code:
May 4 22:05:37 custom_script: Running /jffs/scripts/post-mount (args: /tmp/mnt/entware)
May 4 22:05:37 admin: /jffs/scripts/post-mount: Setting up timezone for Entware...
May 4 22:05:38 admin: Started dnscrypt-proxy from .
May 5 05:05:38 dnscrypt-proxy[1136]: Source [opennic.md] loaded
May 5 05:05:38 dnscrypt-proxy[1136]: dnscrypt-proxy 2.0.23
May 5 05:05:38 dnscrypt-proxy[1136]: Now listening to 127.0.0.1:65053 [UDP]
May 5 05:05:38 dnscrypt-proxy[1136]: Now listening to 127.0.0.1:65053 [TCP]
If I restart dnscrypt-proxy it picks up the timezone correctly. It's just at boot time that it doesn't. The only thing I can think of is that at boot it's starting before ntpd updates the time, and restarts are after.