mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 19:36:29 +01:00
alsactl: Add path condition to alsa-store and alsa-restore services
With alsa-restore.service and alsa-store.service, systemd invokes alsactl at boot and shutdown times. When this is invoked on a system without sound cards, it results in an ugly error message from alsact /usr/sbin/alsactl: save_state:1590: No soundcards found... return code is "19" Add ConditionPathExistsGlob checks of /dev/snd/control* devices for avoiding unnecessary invocations of alsactl on such a system. Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=940950 Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ff9b070d9c
commit
0e864e1a3a
2 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
[Unit]
|
||||
Description=Restore Sound Card State
|
||||
ConditionPathExists=!@daemonswitch@
|
||||
ConditionPathExistsGlob=/dev/snd/control*
|
||||
DefaultDependencies=no
|
||||
After=alsa-state.service
|
||||
Before=shutdown.target
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
[Unit]
|
||||
Description=Store Sound Card State
|
||||
ConditionPathExists=!@daemonswitch@
|
||||
ConditionPathExistsGlob=/dev/snd/control*
|
||||
DefaultDependencies=no
|
||||
Before=shutdown.target
|
||||
|
||||
|
|
Loading…
Reference in a new issue