Blame SOURCES/alsa-restore.service

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