File: console-setup-mini.postinst

package info (click to toggle)
console-setup 1.68%2Bsqueeze2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 24,608 kB
  • ctags: 293
  • sloc: xml: 9,987; perl: 8,478; sh: 3,005; makefile: 672
file content (29 lines) | stat: -rw-r--r-- 593 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
28
29
#!/bin/sh

set -e

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

OLDCONFIGFILE=/etc/default/console-setup

if [ "$1" = "configure" ]; then
    # For compatibility with programs that expect console-setup-mini
    # to define XKB... variables in /etc/default/console-setup.
    if \
	[ ! -f $OLDCONFIGFILE ] \
	|| ! grep '^ *[.] */etc/default/keyboard' $OLDCONFIGFILE >/dev/null
    then
	cat >>$OLDCONFIGFILE <<EOF

if [ -f /etc/default/keyboard ]; then
    . /etc/default/keyboard
fi
EOF
    fi
fi

# This works even if we are not on the console
setupcon --save-only

#DEBHELPER#