Package: ntpdate Version: 1:4.2.4p0+dfsg-1 Severity: wishlist Tags: patch Hi,
Please add a variable to allow ntpdate to be disabled at ifup time. I see that ntpdate.ifup does not source ntpdate.default, but ntpdate-debian does. Therefore my patch touches ntpdate-debian and not the ifup script directly. This is useful in "live" debian environments, when we do not want live media (cd, usb debian portable system) to touch system wherever possible in some cases. Interestingly, in live environment cases timezone is often slightly off (timezone cannot be autodetected perfectly), or clock skew is high, and ntpdate touching the clock causes X to blank. Thanks, Kel.
diff -Nrup ntp-4.2.4p0+dfsg/debian/ntpdate-debian ntp-4.2.4p0+dfsg.disable-ifup/debian/ntpdate-debian --- ntp-4.2.4p0+dfsg/debian/ntpdate-debian 2007-06-26 22:32:38.000000000 +1000 +++ ntp-4.2.4p0+dfsg.disable-ifup/debian/ntpdate-debian 2007-06-26 22:26:56.000000000 +1000 @@ -6,6 +6,10 @@ if [ -r /etc/default/ntpdate ]; then . /etc/default/ntpdate fi +if [ "$NTPDATE_DISABLED" = yes ]; then + exit 0 +fi + if [ "$NTPDATE_USE_NTP_CONF" = yes ]; then if [ -r /etc/ntp.conf.dhcp ]; then file=/etc/ntp.conf.dhcp diff -Nrup ntp-4.2.4p0+dfsg/debian/ntpdate.default ntp-4.2.4p0+dfsg.disable-ifup/debian/ntpdate.default --- ntp-4.2.4p0+dfsg/debian/ntpdate.default 2007-06-26 22:32:38.000000000 +1000 +++ ntp-4.2.4p0+dfsg.disable-ifup/debian/ntpdate.default 2007-06-26 22:32:11.000000000 +1000 @@ -11,3 +11,7 @@ NTPSERVERS="0.debian.pool.ntp.org 1.debi # Additional options to pass to ntpdate NTPOPTIONS="" + +# Uncomment and set to "yes" to disable ntpdate-debian wrapper from doing +# anything at all. +#NTPDATE_DISABLED=yes