#!/bin/sh
set -e

# Divert the regular cursor font out of the way, so our font is used
# instead. This has to happen before update-font-dir, which is why it's in
# the preinst here; if this package and xfonts-base are installed at the
# same time, it needs to run before that package is unpacked.
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	dpkg-divert --package big-cursor --add --rename --divert \
		/usr/share/X11/fonts/misc/cursor.pcf.gz-small \
		/usr/share/X11/fonts/misc/cursor.pcf.gz 
fi
		
#DEBHELPER#
