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