Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 553e0418996c5777e078b7b1925b0d0a > scriptlet

pulseaudio-client-config-14.2-2.mga8.i586.rpm

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