Sophie

Sophie

distrib > Mageia > 9 > aarch64 > by-pkgid > 7a23178688005e18d226ea4fd4aacd02 > scriptlet

alsa-utils-1.2.9-1.mga9.aarch64.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