alsa-utils/alsa-restore.service

15 lines
480 B
SYSTEMD
Raw Normal View History

2013-04-12 09:19:29 +00:00
#
# Note that two different ALSA card state management schemes exist and they
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
#
2011-01-28 13:28:23 +00:00
[Unit]
2015-10-27 17:01:33 +00:00
Description=Save/Restore Sound Card State
2013-04-12 09:19:29 +00:00
ConditionPathExists=!/etc/alsa/state-daemon.conf
2011-01-28 13:28:23 +00:00
[Service]
Type=oneshot
2015-10-27 17:01:33 +00:00
RemainAfterExit=true
2011-01-28 13:28:23 +00:00
ExecStart=-/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore
2015-10-27 17:01:33 +00:00
ExecStop=/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf store