config is in gpm 1.20.4-6.1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
unset device type responsiveness repeat_type sample_rate append
[ -e /etc/gpm.conf ] && . /etc/gpm.conf
# 'device' and 'type' should always be set, so use those to determine
# if we have a gpm.conf which is worth preseeding from.
if [ -n "$device" ] && [ -n "$type" ]; then
for q in device type responsiveness repeat_type sample_rate append; do
eval value="\$$q"
db_set gpm/$q "$value"
db_fset gpm/$q seen true
done
else
KVER=$(uname)-$(uname -r)
ARCH=$(dpkg --print-architecture)
case $ARCH in
m68k)
db_set gpm/device /dev/mouse;
db_set gpm/type bm;;
sparc)
db_set gpm/device /dev/sunmouse;
db_set gpm/type sun;;
i386|*)
db_set gpm/device /dev/psaux;
db_set gpm/type autops2;;
esac;
case $KVER in
Linux-2.6*|Linux-[3-9]*)
# Use the input layer by default.
# The input layer also makes the gpm repeater rather moot.
db_set gpm/device /dev/input/mice;
db_set gpm/type exps2;
db_set gpm/repeat_type none ;;
esac
fi
db_input medium gpm/restart || true
db_input medium gpm/device || true
# TODO: autogenerate list of types from gpm source,
# then make the question a "select" type rather than a string.
db_input medium gpm/type || true
db_input low gpm/responsiveness || true
db_input low gpm/repeat_type || true
db_input low gpm/sample_rate || true
db_input low gpm/append || true
db_go || true
|