Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > by-pkgid > 826ed9983811ae2b77bcfba0b3427341 > scriptlet

alsa-utils-1.1.8-1.mga7.x86_64.rpm

PREIN

/bin/sh
# (cg) When first installed/upgraded add the state-daemon config file.
if [ ! -r /usr/lib/systemd/system/alsa-state.service ]; then
  if [ ! -d /etc/alsa ]; then
    mkdir -m 0755 /etc/alsa
  fi
  echo "# Remove this file to disable the alsactl daemon mode" > /etc/alsa/state-daemon.conf
fi

POSTIN

/bin/sh
if [ -s /etc/asound.state -a ! -s /var/lib/alsa/asound.state ] ; then
   mv /etc/asound.state /var/lib/alsa/asound.state
fi