a7e41e
#
a7e41e
# Note that two different ALSA card state management schemes exist and they
a7e41e
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
a7e41e
#
a7e41e
a7e41e
[Unit]
a7e41e
Description=Restore Sound Card State
a7e41e
ConditionPathExists=!/etc/alsa/state-daemon.conf
a7e41e
DefaultDependencies=no
a7e41e
After=alsa-state.service
a7e41e
Before=shutdown.target
a7e41e
Conflicts=shutdown.target
a7e41e
a7e41e
[Service]
a7e41e
Type=oneshot
a7e41e
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
a7e41e
StandardOutput=syslog