File: console-common.postinst

package info (click to toggle)
console-common 0.7.49
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 724 kB
  • ctags: 67
  • sloc: perl: 519; sh: 341; makefile: 135; awk: 134
file content (28 lines) | stat: -rw-r--r-- 662 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh 

set -e


# Ensure old keymap-loading scripts previously provided by
# console-tools and kbd are gone for good, or the keymap loaded
# by console-common may be overriden by an obsolete one.

# We need to do this because init.d scripts have to be conffiles, and
# we hit dpkg Bug#59740.  Additionally the "update-rc.d remove"
# cleanup has to be done anyway.

# the kbd one
if [ -r /etc/init.d/keymaps.sh ]
then
    rm -f /etc/init.d/keymaps.sh
    update-rc.d keymaps.sh remove >/dev/null
fi

# the lct one
if [ -r /etc/init.d/keymaps-lct.sh ]
then
    rm -f /etc/init.d/keymaps-lct.sh
    update-rc.d keymaps-lct.sh remove >/dev/null
fi

#DEBHELPER#