preinst is in asterisk-core-sounds-es-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-es
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" le 1.4.21-1; then
update-alternatives --remove asterisk-prompt-es /usr/share/asterisk/sounds/en_US_f_Allison
update-alternatives --remove asterisk-prompt-es-us /usr/share/asterisk/sounds/en_US_f_Allison
fi
|