Blame SOURCES/alsa-restore.service

a3661c
#
a3661c
# Note that two different ALSA card state management schemes exist and they
a3661c
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
a3661c
#
a3661c
a3661c
[Unit]
a3661c
Description=Save/Restore Sound Card State
a3661c
ConditionPathExists=!/etc/alsa/state-daemon.conf
a3661c
ConditionPathExistsGlob=/dev/snd/control*
a3661c
ConditionPathExists=/var/lib/alsa/asound.state
a3661c
a3661c
[Service]
a3661c
Type=oneshot
a3661c
RemainAfterExit=true
a3661c
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
a3661c
ExecStop=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store