summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-06 13:15:18 +0000
committerErmal <eri@pfsense.org>2010-09-06 13:15:18 +0000
commit401a6674c7bb0b2c2cba4ed575a6b83d6597a6b0 (patch)
treece5d6eb6a456be730b62847d4007703d6e7665e2 /etc/inc/system.inc
parent45611d02b86a847f8c266390f2ebcb485893baad (diff)
downloadpfsense-401a6674c7bb0b2c2cba4ed575a6b83d6597a6b0.zip
pfsense-401a6674c7bb0b2c2cba4ed575a6b83d6597a6b0.tar.gz
Actually there is a script that will run ntpd on bootup. Revert partially the change to fix ntp.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc3
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");
OpenPOWER on IntegriCloud