tarina

git clone https://git.tarina.org/tarina
Log | Files | Refs | README | LICENSE

alsa-restore.service.in (497B)


      1 #
      2 # Note that two different ALSA card state management schemes exist and they
      3 # can be switched using a file exist check - /etc/alsa/state-daemon.conf .
      4 #
      5 
      6 [Unit]
      7 Description=Save/Restore Sound Card State
      8 Documentation=man:alsactl(1)
      9 ConditionPathExists=!@daemonswitch@
     10 ConditionPathExistsGlob=/dev/snd/control*
     11 After=alsa-state.service
     12 
     13 [Service]
     14 Type=oneshot
     15 RemainAfterExit=true
     16 ExecStart=-@sbindir@/alsactl -E HOME=@alsactlhome@ restore
     17 ExecStop=-@sbindir@/alsactl -E HOME=@alsactlhome@ store