Hello, since upgrading to the latest firmware 374.42 on my n66u my wan start script appears to have stopped working properly. In the log I see that the dnscrypt certificates are not being accepted due to the network time not being updated.
Can any one suggest a modification? Running the script again manually seems to work.
Many thanks.
Code:
#!/bin/sh
# Wait up to 15 seconds to make sure /opt partition is mounted
i=0
while [ $i -le 15 ]
do
if [ -d /opt/tmp ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Now resolve DNS name for NTP server
rm -f /jffs/configs/hosts.add
ntp_name=$(nvram get ntp_server0)
for ip in $(/opt/sbin/dnscrypt-proxy-hostip $ntp_name)
do
echo $ip $ntp_name >> /jffs/configs/hosts.add
done
# and restart NTP client to eliminate 4-5 mins delay
killall ntp && sleep 2
service restart_ntpc
Can any one suggest a modification? Running the script again manually seems to work.
Many thanks.