diff options
author | jim-p <jimp@pfsense.org> | 2012-05-16 13:21:27 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-16 13:21:27 -0400 |
commit | 10e741d58998b3f94ed51a32bee46ac1dab6d4da (patch) | |
tree | 92ab22d474c66fb2868ff1cf4cf50dfea3ed3ab0 /etc | |
parent | b40e9b1cfb87d0d25ea0ba15650b8ec73ef82eb7 (diff) | |
download | pfsense-10e741d58998b3f94ed51a32bee46ac1dab6d4da.zip pfsense-10e741d58998b3f94ed51a32bee46ac1dab6d4da.tar.gz |
ntpdate was hanging, use the same hacky fix that works for ntpd and it works too. All happy, even from a cold boot on ALIX 2d3 with no RTC battery.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.bootup | 2 | ||||
-rwxr-xr-x | etc/rc.newwanip | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup index 7930da6..84f8246 100755 --- a/etc/rc.bootup +++ b/etc/rc.bootup @@ -282,7 +282,7 @@ system_routing_enable(); echo "Starting NTP time client..."; /* At bootup this will just write the config, ntpd will launch from ntpdate_sync_once.sh */ system_ntp_configure(false); -mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh"); +mwexec_bg("echo /usr/local/sbin/ntpdate_sync_once.sh | tcsh"); /* start load balancer daemon */ relayd_configure(); diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 32af0a5..0438088 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -51,7 +51,7 @@ function restart_packages() { /* restart packages */ system_ntp_configure(false); - mwexec_bg("/usr/local/sbin/ntpdate_sync_once.sh"); + mwexec_bg("echo /usr/local/sbin/ntpdate_sync_once.sh | tcsh"); log_error("{$g['product_name']} package system has detected an ip change $oldip -> $curwanip ... Restarting packages."); send_event("service reload packages"); } |