File: alsa-restore.service.in

package info (click to toggle)
alsa-utils 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,956 kB
  • sloc: ansic: 24,749; sh: 7,171; xml: 590; makefile: 434; sed: 16
file content (17 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# 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
Documentation=man:alsactl(1)
ConditionPathExists=!@daemonswitch@
ConditionPathExistsGlob=/dev/snd/control*
After=alsa-state.service

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=-@sbindir@/alsactl -E HOME=@alsactlhome@ restore
ExecStop=-@sbindir@/alsactl -E HOME=@alsactlhome@ store