You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
837 B
39 lines
837 B
14 years ago
|
#! /bin/sh -e
|
||
|
|
||
|
case "$1" in
|
||
|
purge)
|
||
13 years ago
|
rm -rf /var/log/tdm-trinity.log*
|
||
14 years ago
|
;;
|
||
|
|
||
|
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||
|
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "postrm called with unknown argument \`$1'" >&2
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
if [ "$1" = "abort-install" -o "$1" = "abort-upgrade" ]; then
|
||
|
# roll back displacement of default display manager file
|
||
|
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then
|
||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||
|
#observe "rolling back change of default X display manager"
|
||
|
mv "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||
|
fi
|
||
|
fi
|
||
|
|
||
|
if [ "$1" = "purge" ]; then
|
||
13 years ago
|
for DIR in /var/lib/tdm-trinity; do
|
||
14 years ago
|
if [ -d "$DIR" ]; then
|
||
|
rm -rf "$DIR"
|
||
|
fi
|
||
|
done
|
||
13 years ago
|
rm -f /var/log/tdm-trinity.log*
|
||
14 years ago
|
fi
|
||
|
|
||
|
#DEBHELPER#
|
||
|
|
||
|
exit 0
|