#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/audio/last.fm/files/pkg-deinstall.in,v 1.1 2007-02-06 14:20:53 lofi Exp $
#

if [ "$2" != "POST-DEINSTALL" ]; then
        exit 0
fi

lmozprefs=/usr/local/lib/linux-firefox/defaults/pref/firefox.js
blmozprefs=/usr/local/lib/linux-firefox/defaults/pref/firefox.js.bak

mozprefs=/usr/local/lib/firefox/defaults/pref/firefox.js
bmozprefs=/usr/local/lib/firefox/defaults/pref/firefox.js.bak

if [ -f $lmozprefs -a -f $blmozprefs ]; then
	mv $blmozprefs $lmozprefs
fi

if [ -f $mozprefs -a -f $bmozprefs ]; then
	mv $bmozprefs $mozprefs
fi

exit 0
