summaryrefslogtreecommitdiffstats
path: root/src/initramfs/scripts/bin/hwautocfg
diff options
context:
space:
mode:
Diffstat (limited to 'src/initramfs/scripts/bin/hwautocfg')
-rwxr-xr-xsrc/initramfs/scripts/bin/hwautocfg8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/initramfs/scripts/bin/hwautocfg b/src/initramfs/scripts/bin/hwautocfg
index bf8937b6..f015f6fc 100755
--- a/src/initramfs/scripts/bin/hwautocfg
+++ b/src/initramfs/scripts/bin/hwautocfg
@@ -27,8 +27,9 @@ done
# no kernel messages, switch on hotplug via /sbin/mdev
echo "0 0 0 0" >/proc/sys/kernel/printk
echo "/sbin/mdev" >/proc/sys/kernel/hotplug
-echo -e "card[0-9] 0:0 660 =dri/\n(control[A-Z])([0-9]+) 0:0 660 =dri/\n\
-event[0-9] 0:0 640 =input/\n" >>/etc/mdev.conf
+echo -e "(control[A-Z])([0-9]) 0:0 660 =snd/\n(pcm[A-Z][0-9][A-Z][0-9][cp]) 0:0 660 =snd/\n\
+(hw[A-Z0-9]*) 0:0 660 =snd/\ncard[0-9] 0:0 660 =dri/\nevent[0-9] 0:0 640 =input/\n\
+(control[A-Z])([0-9]+) 0:0 660 =dri/\n" >>/etc/mdev.conf
modprobe -a ${MODPRV} usbhid hid-bright hid-generic 2>/dev/null &
# check from vga= that the traditional framebuffer is needed e.g. for splashy
# get information on the graphics adaptor if bootsplash or xserver plugins are
@@ -229,6 +230,9 @@ mdev -s
# mount filesystem parts (if any) requested in disk setup
[ -f /etc/do_mnt ] && \
{ sed -e "1i. /etc/functions" -i /etc/do_mnt; sh /etc/do_mnt; } &
+# assign proper permissions
+chown root:audio /dev/snd/*
+chown root:video /dev/dri/*
# remove unneeded disk and mouse drivers
[ ! -s /etc/hwinfo.disk ] && rmmod sd_mod 2>/dev/null
#grep -q " PS/2 " /etc/hwinfo.mouse || \