#!/bin/sh -e

if [ $1 = "purge " ]; then
	echo "Purging configuration files.."
		
	if [ -f /etc/modutils/alsa ]; then
		rm -f /etc/modutils/alsa
		update-modules
	fi

	if [ -d /etc/sound ]; then
		rm -rf /etc/sound
	fi

	rm -f /etc/init.d/alsa /etc/modutils/alsa
	update-rc.d alsa remove
fi

#DEBHELPER#
