diff options
author | Ermal <eri@pfsense.org> | 2010-09-06 13:15:18 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-06 13:15:18 +0000 |
commit | 401a6674c7bb0b2c2cba4ed575a6b83d6597a6b0 (patch) | |
tree | ce5d6eb6a456be730b62847d4007703d6e7665e2 | |
parent | 45611d02b86a847f8c266390f2ebcb485893baad (diff) | |
download | pfsense-401a6674c7bb0b2c2cba4ed575a6b83d6597a6b0.zip pfsense-401a6674c7bb0b2c2cba4ed575a6b83d6597a6b0.tar.gz |
Actually there is a script that will run ntpd on bootup. Revert partially the change to fix ntp.
-rw-r--r-- | etc/inc/system.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 09f1b98..d8c6042 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -1159,6 +1159,9 @@ function system_ntp_configure() { if(!is_dir("/var/empty")) exec("/bin/mkdir -p /var/empty && chmod ug+rw /var/empty/."); + if ($g['booting']) + return; + /* start opentpd, set time now and use /var/etc/ntpd.conf */ exec("/usr/local/sbin/ntpd -s -f {$g['varetc_path']}/ntpd.conf"); |