#!/bin/sh
case "$2" in
DEINSTALL)
if cmp -s /usr/local/share/tumgreyspf/__default__.dist /var/db/tumgreyspf/config/__default__; then
rm /var/db/tumgreyspf/config/__default__ 2>/dev/null
fi
rmdir /var/db/tumgreyspf/config 2>/dev/null
rmdir /var/db/tumgreyspf/data 2>/dev/null
rmdir /var/db/tumgreyspf 2>/dev/null
if [ -d /var/db/tumgreyspf ]; then
echo ""
echo "If you are deinstalling completely tumgreyspf, run:"
echo ""
echo "# rm -rf /var/db/tumgreyspf"
echo ""
fi
;;
*)
;;
esac
syntax highlighted by Code2HTML, v. 0.9.1