mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
alsa-utils:
- rework of init scripts
This commit is contained in:
parent
4d10c33670
commit
00704d9102
@ -1,13 +0,0 @@
|
||||
# Give the audio group ownership of sound devices
|
||||
SUBSYSTEM=="sound", GROUP="audio"
|
||||
SUBSYSTEM=="snd", GROUP="audio"
|
||||
|
||||
# ALSA Devices
|
||||
# When a sound device is detected, restore the volume settings
|
||||
KERNEL=="controlC[0-9]*", NAME="snd/%k", RUN="/etc/init.d/40_alsa"
|
||||
KERNEL=="hw[CD0-9]*", NAME="snd/%k"
|
||||
KERNEL=="pcm[CD0-9cp]*", NAME="snd/%k"
|
||||
KERNEL=="midiC[D0-9]*", NAME="snd/%k"
|
||||
KERNEL=="timer", NAME="snd/%k"
|
||||
KERNEL=="seq", NAME="snd/%k"
|
||||
|
@ -1,13 +0,0 @@
|
||||
# Give the audio group ownership of sound devices
|
||||
SUBSYSTEM=="sound", GROUP="audio"
|
||||
SUBSYSTEM=="snd", GROUP="audio"
|
||||
|
||||
# ALSA Devices
|
||||
# When a sound device is detected, restore the volume settings
|
||||
KERNEL=="controlC[0-9]*", NAME="snd/%k", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"
|
||||
KERNEL=="hw[CD0-9]*", NAME="snd/%k"
|
||||
KERNEL=="pcm[CD0-9cp]*", NAME="snd/%k"
|
||||
KERNEL=="midiC[D0-9]*", NAME="snd/%k"
|
||||
KERNEL=="timer", NAME="snd/%k"
|
||||
KERNEL=="seq", NAME="snd/%k"
|
||||
|
@ -10,4 +10,5 @@ KERNEL=="pcm[CD0-9cp]*", NAME="snd/%k"
|
||||
KERNEL=="midiC[D0-9]*", NAME="snd/%k"
|
||||
KERNEL=="timer", NAME="snd/%k"
|
||||
KERNEL=="seq", NAME="snd/%k"
|
||||
KERNEL=="mixer0", SYMLINK+="mixer"
|
||||
|
@ -16,8 +16,11 @@ rm -rf $INSTALL/usr/share/alsa/init/Makefile*
|
||||
mkdir -p $INSTALL/etc/udev/rules.d
|
||||
cp $PKG_DIR/config/rules.d/* $INSTALL/etc/udev/rules.d
|
||||
|
||||
mkdir -p $INSTALL/usr/config
|
||||
cp $PKG_DIR/config/asound.state $INSTALL/usr/config
|
||||
|
||||
mkdir -p $INSTALL/etc
|
||||
cp $PKG_DIR/config/asound.state $INSTALL/etc
|
||||
ln -s /storage/.config/asound.state $INSTALL/etc/asound.state
|
||||
|
||||
if [ "$DEVTOOLS" = yes ]; then
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
|
Loading…
x
Reference in New Issue
Block a user