mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
37bbed6f95
asterisk-chan-lantiq is by now the only user of the VMMC interface. And asterisk runs as user 'asterisk' which doesn't give it permission to open the /dev/vmmc* devices. Introduce a new user group 'vmmc' and give permission to access the /dev/vmmc* devices to that group. Another commit for asterisk-chan-lantiq will add the 'asterisk' user to that group. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
15 lines
257 B
Bash
15 lines
257 B
Bash
#!/bin/sh /etc/rc.common
|
|
#
|
|
# Activate Voice CPE TAPI subsystem LL driver for VMMC
|
|
|
|
START=31
|
|
|
|
start() {
|
|
for i in 10 11 12 13 14 15 16 17 18; do
|
|
if ! [ -e /dev/vmmc$i ]; then
|
|
mknod -m 664 /dev/vmmc$i c 122 $i
|
|
chown root:vmmc /dev/vmmc$i
|
|
fi
|
|
done
|
|
}
|