File: preinst

package info (click to toggle)
bind9 1%3A9.3.4-2etch6
  • links: PTS, VCS
  • area: main
  • in suites: etch
  • size: 24,476 kB
  • ctags: 22,776
  • sloc: ansic: 222,420; sh: 20,927; xml: 7,441; makefile: 3,681; perl: 3,026; cpp: 1,764; tcl: 842; python: 77
file content (18 lines) | stat: -rw-r--r-- 540 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# pre install script for the Debian bind9 package

set -e

# Check if we are upgrading while running a kernel before 2.2.18. If so abort
# immediately since we don't support those kernels anymore.
if [ "$1" = "upgrade" ] && dpkg --compare-versions "`uname -r`" lt 2.2.18 ; then
        cat <<EOF
ERROR: you are running a pre-2.2.18 kernel on this machine. Recent
versions of bind9 no longer support those kernels.
To prevent breaking nameservices on this system bind9 upgrade will abort.
EOF
        exit 1
fi

#DEBHELPER#
exit 0