#! /bin/sh
set -e

#DEBHELPER#

case "$1" in
  configure)

    if [ -L /usr/X11R6/lib/X11/icons/default/index.theme ]; then
      update-alternatives --remove-all x-cursor-theme
    fi

    update-alternatives \
      --install /usr/share/icons/default/index.theme \
      x-cursor-theme /usr/share/themes/Human/cursor.theme 40

    # mvo: grub splash is disabled until dapper+1
    #      we can't use the alternatives system for grub because
    #      of people with their own /boot partition, this needs to 
    #      be redone then as well (in a way that derivaties can
    #      easily overwrite it)

    # add a alternative for grub
    #if [ -d /boot/grub ]; then
    #  update-alternatives \
    #    --install /boot/grub/default-splash.xpm.gz \
    #  grub-artwork /usr/share/pixmaps/grub/ubuntu-artwork.xpm.gz 40
    #fi
    # and run update grub to install the splash image
    #if [ -x /sbin/update-grub ]; then
    #	/sbin/update-grub
    #fi
    
  ;;
esac

exit 0
