/[smeserver]/rpms/e-smith-ntp/sme10/e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch
ViewVC logotype

Diff of /rpms/e-smith-ntp/sme10/e-smith-ntp-2.6.0-bz11008-bz8881-improve-systemd-driftfile.patch

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

Revision 1.11 by jpp, Mon Feb 6 06:58:10 2023 UTC Revision 1.12 by jpp, Mon Feb 6 07:13:17 2023 UTC
# Line 55  diff -Nur e-smith-ntp-2.6.0.old/root/etc Line 55  diff -Nur e-smith-ntp-2.6.0.old/root/etc
55  diff -Nur e-smith-ntp-2.6.0.old/root/sbin/e-smith/systemd/initializedate e-smith-ntp-2.6.0/root/sbin/e-smith/systemd/initializedate  diff -Nur e-smith-ntp-2.6.0.old/root/sbin/e-smith/systemd/initializedate e-smith-ntp-2.6.0/root/sbin/e-smith/systemd/initializedate
56  --- e-smith-ntp-2.6.0.old/root/sbin/e-smith/systemd/initializedate      1969-12-31 19:00:00.000000000 -0500  --- e-smith-ntp-2.6.0.old/root/sbin/e-smith/systemd/initializedate      1969-12-31 19:00:00.000000000 -0500
57  +++ e-smith-ntp-2.6.0/root/sbin/e-smith/systemd/initializedate  2020-11-26 23:10:27.667000000 -0500  +++ e-smith-ntp-2.6.0/root/sbin/e-smith/systemd/initializedate  2020-11-26 23:10:27.667000000 -0500
58  @@ -0,0 +1,21 @@  @@ -0,0 +1,19 @@
59  +#!/bin/bash  +#!/bin/bash
60  +#first move old drift file if in the way  +#first move old drift file if in the way
61  +OLDFILE='/etc/ntp/drift'  +OLDFILE='/etc/ntp/drift'
# Line 69  diff -Nur e-smith-ntp-2.6.0.old/root/sbi Line 69  diff -Nur e-smith-ntp-2.6.0.old/root/sbi
69  +                /usr/bin/mv $OLDFILE  $NEWFILE  +                /usr/bin/mv $OLDFILE  $NEWFILE
70  +        fi  +        fi
71  +fi  +fi
72  +if [ -f "$NEWFILE" ]; then  +/usr/bin/chown ntp:ntp $NEWFILE
 +        /usr/bin/chown ntp:ntp $NEWFILE  
 +fi  
73  +  +
74  +# Run ntpdate so we're not way off on startup.  +# Run ntpdate so we're not way off on startup.
75  +ntpstep=/etc/ntp/step-tickers  +ntpstep=/etc/ntp/step-tickers


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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