config is in tpb 0.6.4-8.
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 | #!/bin/sh
PACKAGE="tpb"
CONFIG="/etc/default/$PACKAGE"
CONFIG_OLD="/etc/X11/Xsession.d/90tpb"
set -e
. /usr/share/debconf/confmodule
# load data from old configuration file into debconf
if [ -f $CONFIG_OLD ]; then
. $CONFIG_OLD
if ! [ -z $START_TPB ]; then
db_set $PACKAGE/autostart $START_TPB
fi
fi
# override with data from new configuration
if [ -f $CONFIG ]; then
. $CONFIG
if ! [ -z $START_TPB ]; then
db_set $PACKAGE/autostart $START_TPB
fi
fi
if ! [ -e /run/udev ] && ! [ -e /dev/.udev ] && ! [ -e /dev/.udevdb ] && ! [ -e /dev/.udev.tdb ] && [ "$(stat -c %G /dev/nvram 2>/dev/null)" = thinkpad ]; then # still the old group
db_input high tpb/groupchanged || true
fi
db_input low tpb/autostart || true
db_go || true
db_stop
|