~ubuntu-branches/ubuntu/lucid/kbd/lucid

« back to all changes in this revision

Viewing changes to debian/kbd.postrm

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2009-02-16 16:02:08 UTC
  • Revision ID: package-import@ubuntu.com-20090216160208-jsfi1n65av36z6en
Tags: 1.14.1-4ubuntu3
Depend on console-setup, and remove /etc/init.d/console-screen.kbd.sh;
we now only support systems using console-setup and so it no longer
serves a purpose (LP: #282216).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
 
 
3
abort_rm_conffile () {
 
4
        CONFFILE="$1"
 
5
        ACTION="$2"
 
6
 
 
7
        if [ "$ACTION" = remove ]; then
 
8
                if [ -e "$CONFFILE".moved-by-preinst ]; then
 
9
                        echo "Aborting removal of obsolete conffile $CONFFILE"
 
10
                        mv -f "$CONFFILE".moved-by-preinst "$CONFFILE"
 
11
                fi
 
12
        fi
 
13
}
 
14
 
 
15
case $1 in
 
16
        abort-install|abort-upgrade)
 
17
                if dpkg --compare-versions "$2" lt 1.14.1-4ubuntu3; then
 
18
                        abort_rm_conffile /etc/init.d/console-screen.kbd.sh remove
 
19
                fi
 
20
                ;;
 
21
esac
 
22
 
 
23
#DEBHELPER#
 
24
 
 
25
exit 0