File: keyboard-configuration.preinst

package info (click to toggle)
console-setup 1.245
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,488 kB
  • sloc: perl: 11,225; xml: 8,643; sh: 3,902; makefile: 778
file content (26 lines) | stat: -rw-r--r-- 688 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
#!/bin/sh

set -e

# Source debconf library.
. /usr/share/debconf/confmodule

dpkg-maintscript-helper rm_conffile /etc/init.d/keyboard-setup 1.138~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init.d/console-setup 1.138~ -- "$@"
if [ -x "/etc/init.d/keyboard-setup" ]; then
    update-rc.d keyboard-setup remove >/dev/null
fi
if [ -x "/etc/init.d/console-setup" ]; then
    update-rc.d console-setup remove >/dev/null
fi

if dpkg --compare-versions "$2" lt "1.243"; then
    db_get keyboard-configuration/toggle
    toggle="$RET"
    if [ "$toggle" = "Alt+Shift" ]; then
	# Automatically fix #1117976
	db_set keyboard-configuration/toggle "Left Alt+Left Shift"
    fi
fi

#DEBHELPER#