File: ntpdate.postinst

package info (click to toggle)
ntp 1%3A4.2.2.p4%2Bdfsg-2etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 10,236 kB
  • ctags: 10,865
  • sloc: ansic: 90,242; sh: 4,314; perl: 1,331; makefile: 631; awk: 417; asm: 37; sed: 7
file content (12 lines) | stat: -rw-r--r-- 213 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
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#