I have added a DS3231 hardware clock to my pi. I am trying to sync every morning with the following script....But it always returns 'Timesync not done, exiting'.
Code: Select all
#!/bin/sh /usr/sbin/ntp-wait -n 5 -s 3 RETVAL=$? if [ "$RETVAL" != "0" ];then echo "Timesync not done, exiting " exit 1 fi
ntpq: read: Connection refused
Can anyone tell me where I have gone wrong? I just want to update one pi every day to act as a time server to the rest of the network (reducing external network load).
Thanks if you can help.....