preinst is in asterisk-core-sounds-fr-gsm 1.4.27-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 | #! /bin/sh -e
# The alternatives are now handled by asterisk-core-sounds-fr
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" le 1.4.21-1; then
update-alternatives --remove asterisk-prompt-fr /usr/share/asterisk/sounds/fr_CA_f_June
update-alternatives --remove asterisk-prompt-fr-ca /usr/share/asterisk/sounds/fr_CA_f_June
fi
|