Apply patch from <http://bugs.debian.org/513305#67>.
[unscd.git] / debian / preinst
1 #! /bin/sh
2 # preinst script for unscd
3
4 set -e
5
6 case "$1" in
7     install)
8         # necessary in case nscd is not purged
9         # (useful to keep the config file, mostly compatible)
10         if [ ! -e /etc/init.d/.legacy-bootordering && -e /etc/init.d/nscd ]; then
11                 insserv -r /etc/init.d/nscd
12         fi
13     ;;
14 esac
15
16 #DEBHELPER#
17
18 exit 0