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.
 
 
 
 
 

21 lines
387 B

  1. #!/bin/sh
  2. set -e
  3. DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
  4. if [ "$1" = "abort-install" ] || [ "$1" = "abort-upgrade" ]; then
  5. if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then
  6. mv "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" "$DEFAULT_DISPLAY_MANAGER_FILE"
  7. fi
  8. fi
  9. if [ "$1" = "purge" ] ; then
  10. update-rc.d slim remove >/dev/null
  11. fi
  12. #DEBHELPER#
  13. exit 0