HI Guys,

I used this package but I have to manually create a TZ file, otherwise, it doesn't survie reload.
root@OpenWrt:~$ vi /etc/TZ       ********create a file, echo doesn't survive reload
EST5EDT

I found that the way S**ntp handles Nvram value of timezone and timeserver is pretty elegant. So I copied it over to ntpd's script under /hotpludg.d/if and it works for me to manage timezone.

Maybe the owner of this package can refer to S*ntp's script and let openNTPd to get timerserver/timezone from nvram, in addtion to the use of ntpd.conf.

thanks
peng

6. root@OpenWrt:~$ more /etc/hotplug.d/iface/20-ntpd
NAME=ntpd
CONFIG=/etc/$NAME.conf
COMMAND=/usr/sbin/$NAME

[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
        [ -x $COMMAND ] && [ -r $CONFIG ] && {
                TZ=$(nvram get time_zone | cut -f 2)
                [ "$TZ" ] && echo $TZ > /etc/TZ
                killall ntpd
                /etc/init.d/ntpd start
        } &
}

or

root@OpenWrt:~$ vi /etc/TZ       ********create a file, echo doesn't survive reload
EST5EDT