From eaadb190e8c02ef3252994294ae4b17d5c03ebe4 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 1 Aug 2024 10:23:52 +0000 Subject: automatic import of alsa-utils --- alsa.rules | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 alsa.rules (limited to 'alsa.rules') diff --git a/alsa.rules b/alsa.rules new file mode 100644 index 0000000..6a4a0c3 --- /dev/null +++ b/alsa.rules @@ -0,0 +1,8 @@ +ACTION=="add", SUBSYSTEM=="sound", KERNEL=="controlC*", KERNELS!="card*", GOTO="alsa_restore_go" +GOTO="alsa_restore_end" + +LABEL="alsa_restore_go" +TEST!="/etc/alsa/state-daemon.conf", RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main restore /dev/$name" +TEST=="/etc/alsa/state-daemon.conf", RUN+="/sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf --initfile=/lib/alsa/init/00main nrestore /dev/$name" + +LABEL="alsa_restore_end" -- cgit v1.2.3