alsa-utils:

- rework of init scripts
This commit is contained in:
Stephan Raue 2009-11-06 15:12:38 +01:00
parent 4d10c33670
commit 00704d9102
4 changed files with 5 additions and 27 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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