diff options
author | petere <petere@0070b5ef-2f16-0410-befa-9a02bd1d6ddb> | 2006-09-30 12:15:48 +0000 |
---|---|---|
committer | petere <petere@0070b5ef-2f16-0410-befa-9a02bd1d6ddb> | 2006-09-30 12:15:48 +0000 |
commit | 0e4281af0e54c550e2038549ea9d655ca391c232 (patch) | |
tree | af037d2f52342b3f819b56811ce860a912dc7c3c /debian/ntpdate.postinst | |
parent | 3e64051ed4a1f2e5abe0416963dc0bd47f2c03a0 (diff) | |
download | ntp-0e4281af0e54c550e2038549ea9d655ca391c232.tar.gz |
* Remove ntpdate init script installation during upgrade
(closes: #389089)
git-svn-id: svn://svn.debian.org/pkg-ntp/ntp/trunk@101 0070b5ef-2f16-0410-befa-9a02bd1d6ddb
Diffstat (limited to 'debian/ntpdate.postinst')
-rw-r--r-- | debian/ntpdate.postinst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/ntpdate.postinst b/debian/ntpdate.postinst new file mode 100644 index 0000000..28210df --- /dev/null +++ b/debian/ntpdate.postinst @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ]; then + if [ -n "$2" ] && dpkg --compare-versions "$2" lt 1:4.2.2+dfsg.2-3; then + rm -f /etc/init.d/ntpdate + update-rc.d ntpdate remove >/dev/null + fi +fi + +#DEBHELPER# |