[pkg-ntp-maintainers] Bug#389132: Correction
Jack Grahams
jackgrahams at inbox.com
Sun Sep 24 16:40:19 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Oops! My mistake.
Jack.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFFrTy7l4lrvUNGf4RAsSMAJ4tuIoGc2FOfnKVLbLTLlwogxV0aQCfYLhJ
WMEfTvIX/0XRf9qIM2uOmWM=
=1OaZ
-----END PGP SIGNATURE-----
-------------- next part --------------
--- /etc/default/ntpdate 2006-09-24 16:08:51.000000000 +0100
+++ /etc/default/ntpdate.new 2006-09-24 16:09:10.000000000 +0100
@@ -1,7 +1,10 @@
# Servers to check (Separate multiple servers with spaces.)
# This code will take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
-NTPSERVERS=$(sed -rne 's/^(server|peer) ([-_.[:alnum:]]+).*$/\2/p' /etc/ntp.conf | grep -v '^127\.127\.' 2>/dev/null)
+if [ -e /etc/ntp.conf ]; then
+ NTPSERVERS=$(sed -rne 's/^(server|peer) ([-_.[:alnum:]]+).*$/\2/p' /etc/ntp.conf | grep -v '^127\.127\.' 2>/dev/null)
+fi
+
if [ -z "$NTPSERVERS" ]; then
NTPSERVERS="0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org"
fi
-------------- next part --------------
--- ntp-4.2.2+dfsg.2~/debian/ntpdate.default
+++ ntp-4.2.2_dfsg.2/debian/ntpdate.default
@@ -1,7 +1,10 @@
# Servers to check (Separate multiple servers with spaces.)
# This code will take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
-NTPSERVERS=$(sed -rne 's/^(server|peer) ([-_.[:alnum:]]+).*$/\2/p' /etc/ntp.conf | grep -v '^127\.127\.' 2>/dev/null)
+if [ -e /etc/ntp.conf ]; then
+ NTPSERVERS=$(sed -rne 's/^(server|peer) ([-_.[:alnum:]]+).*$/\2/p' /etc/ntp.conf | grep -v '^127\.127\.' 2>/dev/null)
+fi
+
if [ -z "$NTPSERVERS" ]; then
NTPSERVERS="0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org"
fi
More information about the pkg-ntp-maintainers
mailing list