1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh NOTSYNCED="true" while [ "$NOTSYNCED" = "true" ]; do ntpdate "0.pfsense.pool.ntp.org" if [ "$?" = "0" ]; then NOTSYNCED="false" fi done # Launch -- we have net. /usr/local/sbin/ntpd -s -f /var/etc/ntpd.conf