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