1
0
Fork 0
android_external_alsa-utils/alsactl/conf/alsa-restore.service.in
Jaroslav Kysela f047a8a669 alsactl: move udev/systemd files to conf subdirectory
It is a cleanup to not mix C source code with system configuration files.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-12-04 15:08:14 +01:00

15 lines
399 B
SYSTEMD

#
# 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]
Description=Save/Restore Sound Card State
ConditionPathExists=!@daemonswitch@
ConditionPathExistsGlob=/dev/snd/control*
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=-@sbindir@/alsactl restore
ExecStop=-@sbindir@/alsactl store