postrm is in asterisk-prompt-fr-proformatique 20070706-1.4-2.
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 | #!/bin/sh
set -e
case "$1" in
abort-upgrade)
if dpkg --compare-versions "$2" lt-nl 20070706-1.4-2; then
for d in dictate digits letters phonetic; do
if ! [ -e "/usr/share/asterisk/sounds/${d}/fr" ]; then
ln -s "../fr/${d}" "/usr/share/asterisk/sounds/${d}/fr"
fi
done
fi
;;
esac
exit 0
|