POSTIN
/bin/sh
/usr/sbin/update-alternatives \
--install /etc/sound/profiles/current soundprofile /etc/sound/profiles/pulse 20
ccp -i -d --set NoOrphans --oldfile /etc/pulse/client.conf --newfile /etc/pulse/client.conf.rpmnew
POSTUN
/bin/sh
if [ ! -f /etc/sound/profiles/pulse/profile.conf ]; then
/usr/sbin/update-alternatives --remove soundprofile /etc/sound/profiles/pulse
fi
Triggers
pulseaudio-client-config <
5.0-5
/bin/sh
# Autospawn behaviour changed to use systemd, so tidy up the client.conf
# by setting it back to the default value - it no longer changes depending on
# the users soundprofile choice - it always defaults to no.
sed -i 's/^\(\s*\)\;\?\s*\(autospawn\s*=\s*\).*/\1\; \2no/' /etc/pulse/client.conf