/[smeserver]/rpms/e-smith-ntp/sme8/e-smith-ntp-2.2.0-support_large_drifts.patch
ViewVC logotype

Contents of /rpms/e-smith-ntp/sme8/e-smith-ntp-2.2.0-support_large_drifts.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Oct 12 06:18:20 2010 UTC (13 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: e-smith-ntp-2_2_0-3_el5_sme, e-smith-ntp-2_2_0-5_el5_sme, e-smith-ntp-2_2_0-8_el5_sme, e-smith-ntp-2_2_0-6_el5_sme, e-smith-ntp-2_2_0-4_el5_sme, e-smith-ntp-2_2_0-7_el5_sme, HEAD
add missing patch file

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 +}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed