2013-04-10 10:23:16 +02: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 .
|
|
|
|
#
|
|
|
|
|
|
|
|
[Unit]
|
2015-09-29 17:26:34 +02:00
|
|
|
Description=Save/Restore Sound Card State
|
2013-04-10 11:08:47 +02:00
|
|
|
ConditionPathExists=!@daemonswitch@
|
2015-08-10 14:42:24 +02:00
|
|
|
ConditionPathExistsGlob=/dev/snd/control*
|
2013-04-10 10:23:16 +02:00
|
|
|
After=alsa-state.service
|
|
|
|
|
|
|
|
[Service]
|
2013-04-15 11:20:41 +02:00
|
|
|
Type=oneshot
|
2015-09-29 17:26:34 +02:00
|
|
|
RemainAfterExit=true
|
2013-04-10 10:23:16 +02:00
|
|
|
ExecStart=-@sbindir@/alsactl restore
|
2015-09-29 17:26:34 +02:00
|
|
|
ExecStop=-@sbindir@/alsactl store
|