File: console-common.postinst

package info (click to toggle)
console-common 0.7.14
  • links: PTS
  • area: main
  • in suites: woody
  • size: 188 kB
  • ctags: 52
  • sloc: perl: 450; sh: 219; awk: 134; makefile: 108
file content (27 lines) | stat: -rw-r--r-- 660 bytes parent folder | download
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
#!/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#