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