diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-22 00:20:07 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-22 00:20:07 -0600 |
commit | 96dbf4dcb1e04571363422a97649fc929b35beb8 (patch) | |
tree | ad8c3a9d2d4c1e9919a30ec7663e3f0b64e7d8f9 /ubuntu/lucid_automake/kdebase/debian/tdm-kde3.postrm | |
parent | 80e4199df2ac852cfb22848698cabe9ba28e5a67 (diff) | |
download | tde-packaging-96dbf4dcb1e04571363422a97649fc929b35beb8.tar.gz tde-packaging-96dbf4dcb1e04571363422a97649fc929b35beb8.zip |
Second part of prior commit
Diffstat (limited to 'ubuntu/lucid_automake/kdebase/debian/tdm-kde3.postrm')
-rw-r--r-- | ubuntu/lucid_automake/kdebase/debian/tdm-kde3.postrm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ubuntu/lucid_automake/kdebase/debian/tdm-kde3.postrm b/ubuntu/lucid_automake/kdebase/debian/tdm-kde3.postrm new file mode 100644 index 000000000..f33a54fc4 --- /dev/null +++ b/ubuntu/lucid_automake/kdebase/debian/tdm-kde3.postrm @@ -0,0 +1,38 @@ +#! /bin/sh -e + +case "$1" in + purge) + rm -rf /var/log/tdm-kde3.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/tdm-kde3; do + if [ -d "$DIR" ]; then + rm -rf "$DIR" + fi + done + rm -f /var/log/tdm-kde3.log* +fi + +#DEBHELPER# + +exit 0 |