diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-07-10 16:17:43 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-07-10 16:17:43 -0500 |
commit | 9b2075d9b89fc628c447fbb98f43ef72e4a9c81d (patch) | |
tree | 2de9e866f064b1c7d36df24de1df305474f949fe /ubuntu/maverick/kdebase/debian/kdm-trinity.postrm | |
download | tde-packaging-9b2075d9b89fc628c447fbb98f43ef72e4a9c81d.tar.gz tde-packaging-9b2075d9b89fc628c447fbb98f43ef72e4a9c81d.zip |
Initial import from old SVN repository
Note that only the Debian and Ubuntu folders were preserved
Diffstat (limited to 'ubuntu/maverick/kdebase/debian/kdm-trinity.postrm')
-rw-r--r-- | ubuntu/maverick/kdebase/debian/kdm-trinity.postrm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ubuntu/maverick/kdebase/debian/kdm-trinity.postrm b/ubuntu/maverick/kdebase/debian/kdm-trinity.postrm new file mode 100644 index 000000000..b5719fadd --- /dev/null +++ b/ubuntu/maverick/kdebase/debian/kdm-trinity.postrm @@ -0,0 +1,38 @@ +#! /bin/sh -e + +case "$1" in + purge) + rm -rf /var/log/kdm-trinity.log* + ;; + + 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 + for DIR in /var/lib/kdm-trinity; do + if [ -d "$DIR" ]; then + rm -rf "$DIR" + fi + done + rm -f /var/log/kdm-trinity.log* +fi + +#DEBHELPER# + +exit 0 |