File: /var/lib/dpkg/info/pulseaudio.postrm
#!/bin/sh
set -e
# Automatically added by dh_installinit/12.10ubuntu1
if [ "$1" = "purge" ] ; then
update-rc.d pulseaudio-enable-autospawn remove >/dev/null
fi
# End automatically added section
# Automatically added by dh_installdeb/12.10ubuntu1
dpkg-maintscript-helper rm_conffile /etc/default/pulseaudio 1:8.0-0ubuntu3\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init.d/pulseaudio 1:8.0-0ubuntu3\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/xdg/autostart/pulseaudio-kde.desktop 1:6.0-0ubuntu1\~vivid1\~ -- "$@"
dpkg-maintscript-helper mv_conffile /etc/bash_completion.d/pulseaudio-bash-completion.sh /etc/bash_completion.d/pulseaudio 1:8.0-0ubuntu3\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/bash_completion.d/pulseaudio 1:8.0-0ubuntu3\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init/pulseaudio.conf 1:8.0-0ubuntu3\~ -- "$@"
# End automatically added section
# Automatically added by dh_installsystemduser/12.10ubuntu1
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ] ; then
deb-systemd-helper --user mask 'pulseaudio.service' 'pulseaudio.socket' >/dev/null || true
fi
fi
if [ "$1" = "purge" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ] ; then
deb-systemd-helper --user purge 'pulseaudio.service' 'pulseaudio.socket' >/dev/null || true
deb-systemd-helper --user unmask 'pulseaudio.service' 'pulseaudio.socket' >/dev/null || true
fi
fi
# End automatically added section
if [ "$1" = "purge" ] ; then
deluser --quiet --system pulse > /dev/null || true
delgroup --quiet --system pulse-access > /dev/null || true
delgroup --quiet --system pulse-rt > /dev/null || true
fi
exit 0