aboutsummaryrefslogtreecommitdiff
path: root/files/sound/devices.sh
diff options
context:
space:
mode:
Diffstat (limited to 'files/sound/devices.sh')
-rw-r--r--files/sound/devices.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/files/sound/devices.sh b/files/sound/devices.sh
index 00d9168..b112082 100644
--- a/files/sound/devices.sh
+++ b/files/sound/devices.sh
@@ -16,14 +16,16 @@ if [ "$2" == "--check" ]; then
fi
fi
-mkdir $ROOT/dev/snd
-mknod $ROOT/dev/snd/controlC0 c 116 7
-mknod $ROOT/dev/snd/hwC0D2 c 116 6
-mknod $ROOT/dev/snd/pcmC0D0c c 116 5
-mknod $ROOT/dev/snd/pcmC0D0p c 116 4
+mkdir -p $ROOT/dev/snd
+mknod $ROOT/dev/snd/controlC1 c 116 6
+mknod $ROOT/dev/snd/pcmC1D0c c 116 5
+mknod $ROOT/dev/snd/pcmC1D0p c 116 4
mknod $ROOT/dev/snd/seq c 116 3
mknod $ROOT/dev/snd/timer c 116 2
+chown root:audio $ROOT/dev/snd/*
+chmod 660 $ROOT/dev/snd/*
+
if [ -z "$VSERVER" ]; then
chown -R root:audio /dev/snd
else