carbon-s6-rc

Source directory for s6-rc database on Carbon
git clone https://ccx.te2000.cz/git/carbon-s6-rc
Log | Files | Refs

commit 8001cd086e6ca85de187b6a61b9599b559705e1f
parent 8cfbd515c082f075d7cfac70d10f3ee512cbf1a6
Author: ccx <root@dorje.wpr.cz>
Date:   Thu,  4 Mar 2021 16:52:22 +0100

Store/restore ALSA mixer levels.

Diffstat:
A.gitignore | 1+
Aalsa-devices/dependencies | 2++
Aalsa-devices/type | 1+
Aalsa-devices/up | 12++++++++++++
Aalsactl-rdaemon/dependencies | 1+
Aalsactl-rdaemon/run | 2++
Aalsactl-rdaemon/type | 1+
Mok-all-but-tty/contents | 1+
8 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +.*.sw[po] diff --git a/alsa-devices/dependencies b/alsa-devices/dependencies @@ -0,0 +1,2 @@ +modules +udev diff --git a/alsa-devices/type b/alsa-devices/type @@ -0,0 +1 @@ +oneshot diff --git a/alsa-devices/up b/alsa-devices/up @@ -0,0 +1,12 @@ +sh -c " +retry=true +while $retry; do +retry=false +for card in $(sed -n -e '/^ \\?[0-9]/{s/ *\\([0-9]*\\).*/\\1/;p}' /proc/asound/cards); do +$retry && sleep 0.5 +test -e /dev/snd/controlC${card} || retry=true +done +$retry && sleep 0.5 +done +: +" diff --git a/alsactl-rdaemon/dependencies b/alsactl-rdaemon/dependencies @@ -0,0 +1 @@ +alsa-devices diff --git a/alsactl-rdaemon/run b/alsactl-rdaemon/run @@ -0,0 +1,2 @@ +#!/command/execlineb -P +alsactl rdaemon diff --git a/alsactl-rdaemon/type b/alsactl-rdaemon/type @@ -0,0 +1 @@ +longrun diff --git a/ok-all-but-tty/contents b/ok-all-but-tty/contents @@ -11,3 +11,4 @@ dmesg hostname modules udev +alsactl-rdaemon