#!/bin/bash

case "$1" in
	purge)
	    rm -f /etc/default/xpilot-ng-server
	    # Remove xpilotng user and group, if they exist
	    id xpilotng >/dev/null 2>&1 && userdel -r xpilotng
	    [ -d /etc/xpilot-ng ] && chown -R root:root /etc/xpilot-ng
	;;
esac

# Normally added by dh_installinit, but included here manually because
# we customize the prerm and therefore run dh_installinit --noscripts.
if [ "$1" = "purge" ] ; then
        update-rc.d xpilot-ng-server remove >/dev/null
fi


