diff options
Diffstat (limited to 'files/sound')
-rw-r--r-- | files/sound/devices.sh | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/files/sound/devices.sh b/files/sound/devices.sh deleted file mode 100644 index b112082..0000000 --- a/files/sound/devices.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -VSERVER="$1" - -if [ -z "$VSERVER" ]; then - ROOT="/" -else - ROOT="/var/vservers/$1" -fi - -if [ "$2" == "--check" ]; then - if [ -e "$ROOT/dev/snd/controlC0" ]; then - exit 0 - else - exit 1 - fi -fi - -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 - vserver $VSERVER exec chown -R root:audio /dev/snd -fi - -chmod 660 $ROOT/dev/snd/* |