Blame alsactl/alsa-restore.service.in
|
Packit |
229ac0 |
#
|
|
Packit |
229ac0 |
# Note that two different ALSA card state management schemes exist and they
|
|
Packit |
229ac0 |
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
|
|
Packit |
229ac0 |
#
|
|
Packit |
229ac0 |
|
|
Packit |
229ac0 |
[Unit]
|
|
Packit |
229ac0 |
Description=Save/Restore Sound Card State
|
|
Packit |
229ac0 |
ConditionPathExists=!@daemonswitch@
|
|
Packit |
229ac0 |
ConditionPathExistsGlob=/dev/snd/control*
|
|
Packit |
229ac0 |
ConditionPathExists=@asoundrcfile@
|
|
Packit |
229ac0 |
|
|
Packit |
229ac0 |
[Service]
|
|
Packit |
229ac0 |
Type=oneshot
|
|
Packit |
229ac0 |
RemainAfterExit=true
|
|
Packit |
229ac0 |
ExecStart=-@sbindir@/alsactl restore
|
|
Packit |
229ac0 |
ExecStop=-@sbindir@/alsactl store
|