Commit 7339466b authored by Mike Hibler's avatar Mike Hibler
Browse files

Look for drift file in /var/lib/ntp as well as other places

parent 7bc6d4e2
#!/usr/bin/perl -w #!/usr/bin/perl -w
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group. # Copyright (c) 2000-2005, 2007 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
use Getopt::Std; use Getopt::Std;
...@@ -238,6 +238,8 @@ if (-e "/etc/ntp.drift") { ...@@ -238,6 +238,8 @@ if (-e "/etc/ntp.drift") {
$driftfile = "/etc/ntp.drift"; $driftfile = "/etc/ntp.drift";
} elsif (-e "/etc/ntp/drift") { } elsif (-e "/etc/ntp/drift") {
$driftfile = "/etc/ntp/drift"; $driftfile = "/etc/ntp/drift";
} elsif (-e "/var/lib/ntp/drift") {
$driftfile = "/var/lib/ntp/drift";
} }
# #
......
...@@ -55,7 +55,7 @@ restrict -6 ::1 ...@@ -55,7 +55,7 @@ restrict -6 ::1
# by creating a temporary in the same directory and then rename()'ing # by creating a temporary in the same directory and then rename()'ing
# it to the file. # it to the file.
# #
driftfile /etc/ntp/drift driftfile /var/lib/ntp/drift
broadcastdelay 0.008 broadcastdelay 0.008
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment