Sophie

Sophie

distrib > Mageia > 4 > i586 > media > core-release > by-pkgid > eeb0f8fe2fbe1a1c60b0b9ce17829586 > scriptlet

alsa-utils-1.0.27.2-2.mga4.i586.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