What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Entware Timezone Issue

What made troubleshooting this issue more difficult is that there's also a boot order issue. When rebooted, it seems that the /etc/localtime isn't ready when dnscrypt-proxy2 starts, so it defaults to UTC. I had mistaken this behavior for /etc/localtime not working. However, restarting dnscrypt-proxy2 after boot is complete establishes the correct time in the logs. Not sure how to fix this particular problem.

Right now I'm trying this in my /opt/etc/init.d/S09dnscrypt-proxy2:
Code:
# Create timezone info before starting
if [ ! -f /etc/localtime -a -f /opt/share/zoneinfo/US/Pacific ]; then
    ln -sf /opt/share/zoneinfo/US/Pacific /etc/localtime
fi

Seems to work.
 
Last edited:
Well, crap. After re-installing Entware this no longer works. I'm back to square one. On reboot dnscrypt-proxy has UTC time, but if I ./S09dnscrypt-proxy2 restart it fixes itself.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top