1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-ntp-2.2.0/root/etc/e-smith/templates/etc/ntp.conf/00timeServer mezzanine_patched_e-smith-ntp-2.2.0/root/etc/e-smith/templates/etc/ntp.conf/00timeServer |
2 |
--- e-smith-ntp-2.2.0/root/etc/e-smith/templates/etc/ntp.conf/00timeServer 2008-10-07 19:36:26.000000000 +0200 |
3 |
+++ mezzanine_patched_e-smith-ntp-2.2.0/root/etc/e-smith/templates/etc/ntp.conf/00timeServer 2010-10-12 08:01:47.000000000 +0200 |
4 |
@@ -3,6 +3,10 @@ |
5 |
my $server = $ntpd{NTPServer} || ''; |
6 |
return "# sync to hw clock" if $server =~ m#^\s*$#; |
7 |
|
8 |
+ if ( ($ntpd{'SupportLargeDrift'} || 'disabled') eq 'enabled' ){ |
9 |
+ $OUT .= "tinker panic 0\n"; |
10 |
+ } |
11 |
+ |
12 |
if ($server =~ /pool.ntp.org/) |
13 |
{ |
14 |
# The 0, 1, 2, 3 prefixes ensure NTP pool round-robin |
15 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-ntp-2.2.0/root/etc/e-smith/templates/etc/ntp.conf/10localhost mezzanine_patched_e-smith-ntp-2.2.0/root/etc/e-smith/templates/etc/ntp.conf/10localhost |
16 |
--- e-smith-ntp-2.2.0/root/etc/e-smith/templates/etc/ntp.conf/10localhost 2004-09-29 00:08:11.000000000 +0200 |
17 |
+++ mezzanine_patched_e-smith-ntp-2.2.0/root/etc/e-smith/templates/etc/ntp.conf/10localhost 2010-10-12 08:02:50.000000000 +0200 |
18 |
@@ -1,6 +1,9 @@ |
19 |
{ |
20 |
+$OUT = ''; |
21 |
+unless ( ($ntpd{'SupportLargeDrift'} || 'disabled') eq 'enabled' ){ |
22 |
$OUT .= <<EOF; |
23 |
server 127.127.1.0 # local clock |
24 |
fudge 127.127.1.0 stratum 10 |
25 |
EOF |
26 |
} |
27 |
+} |