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