From a1ab725aaebe2a62b654a17f09e9265557a91b2a Mon Sep 17 00:00:00 2001 From: kroeckx Date: Sat, 3 Jul 2010 15:54:42 +0000 Subject: Move dhcp exit hooks git-svn-id: svn://svn.debian.org/pkg-ntp/ntp/trunk@318 0070b5ef-2f16-0410-befa-9a02bd1d6ddb --- debian/ntp.postinst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'debian/ntp.postinst') diff --git a/debian/ntp.postinst b/debian/ntp.postinst index 1ea3768..cfe8c62 100644 --- a/debian/ntp.postinst +++ b/debian/ntp.postinst @@ -11,6 +11,13 @@ if dpkg-maintscript-helper supports rm_conffile; then /etc/network/if-up.d/ntp 1:4.2.6+dfsg-1 -- "$@" fi +if dpkg-maintscript-helper supports mv_conffile; then + dpkg-maintscript-helper mv_conffile \ + /etc/dhcp3/dhclient-exit-hooks.d/ntp \ + /etc/dhcp/dhclient-exit-hooks.d/ntp \ + 1:4.2.6.p1+dfsg-1 -- "$@" +fi + if [ "$1" = "configure" ]; then adduser --system --quiet --group --no-create-home ntp || : chown -R ntp:ntp /var/lib/ntp /var/log/ntpstats -- cgit v1.2.3