Blame SOURCES/alsa-restore.service

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