postinst is in brltty 4.3-1ubuntu5.
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 54 | #! /bin/sh
set -e
if [ ! -e /etc/brlapi.key ]; then
mcookie >/etc/brlapi.key
chmod 0644 /etc/brlapi.key
fi
#update-rc.d brltty start 10 23 . > /dev/null
if type update-initramfs >/dev/null 2>&1; then
update-initramfs -u
fi
# Recover from incorrect init.d script headers in version 4.0-8 and earlier
if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le "4.0-8" \
&& [ -f /etc/rcS.d/S[0-9][0-9]brltty ] \
&& [ -f /etc/rc0.d/K[0-9][0-9]brltty ] \
&& [ -f /etc/rc6.d/K[0-9][0-9]brltty ] ; then
update-rc.d -f brltty remove
fi
# Late handling of conffiles that were renamed or removed in maverick;
# drop after precise
for name in laptop keypad desktop; do
dpkg-maintscript-helper mv_conffile /etc/brltty/${name}.ktb \
/etc/brltty/kbd-${name}.ktb 4.3-1ubuntu3 -- "$@"
done
dpkg-maintscript-helper mv_conffile /etc/brltty/en_UK.ttb \
/etc/brltty/en_GB.ttb 4.3-1ubuntu3 -- "$@"
for name in al at ba ba-all bd bd-all bl bl-18 bl-40_m20_m40 bm bn bn-commands \
bn-keys cb ec ec-all ec-spanish eu eu-all fs hm ht il il-all lt \
lt-all mb mb-all md md-all mn mn-all pg pm pm-2d_l pm-2d_s pm-c \
pm-c_486 pm-el_2d_40 pm-el_2d_66 pm-el_2d_80 pm-el2d_80s \
pm-el_40_p pm-el40s pm-el66s pm-el70s pm-el_80 pm-el80_ii pm-el80s \
pm-elba_20 pm-elba_32 pm-elba_trio_20 pm-elba_trio_32 pm-ib_80 \
pm-trio sk tn tn-all ts ts-nav20_nav40 ts-nav80 ts-pb40 \
ts-pb65_pb81 tt tt-all vd vd-all vo vr vr-all vs vs-all
do
dpkg-maintscript-helper rm_conffile /etc/brltty/brltty-${name}.hlp \
4.3-1ubuntu3 -- "$@"
done
dpkg-maintscript-helper rm_conffile /etc/brltty/brltty-pm.conf \
4.3-1ubuntu3 -- "$@"
# Automatically added by dh_installinit
if [ -x "/etc/init.d/brltty" ]; then
if [ ! -e "/etc/init/brltty.conf" ]; then
update-rc.d brltty start 25 S . >/dev/null
fi
invoke-rc.d brltty start || exit $?
fi
# End automatically added section
|