Re: migration: ntpdate to rdate
Martin-Éric Racine <[email protected]> Thu, 5 Feb 2026 14:46:36 +0200
| Newsgroups | gmane.linux.debian.ports.hurd |
|---|---|
| Message-ID | <CAPZXPQdGr0uwUBcfLnNBjErtCFXqSDcbVmhksT3v2xNvc2Hmjw@mail.gmail.com> |
to 5.2.2026 klo 14.22 Samuel Thibault ([email protected]) kirjoitti: > Martin-Éric Racine, le jeu. 05 févr. 2026 11:54:33 +0200, a ecrit: > > Thiago gave me the go-ahead to upload an NMU for rdate. See attached > > debdiff. Would that work for us? Any obvious gotcha I missed? > > > > +override_dh_install: > > + install -D -m 0644 debian/rdate-ntpdate.dhcp \ > > + debian/rdate-ntpdate/etc/dhcp/dhclient-exit-hooks.d/rdate-ntpdate > > That will work for dhcp-configured systems. For manually-configured > system we'd also need an if-up.d script: In that case, we might as well replace the DHCP exit script with this if-up.d script: ------ #!/bin/sh set -e PATH=/sbin:/bin:/usr/sbin:/usr/bin . /etc/default/rdate-ntpdate case "$METHOD" in dhcp | static) rdate -n $RDATEOPTIONS $NTPSERVER ;; *) exit 0 ;; esac ----- Martin-Éric