aboutsummaryrefslogtreecommitdiffstats
path: root/package/ltq-vmmc/files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2011-02-01 14:32:25 +0000
committerJohn Crispin <blogic@openwrt.org>2011-02-01 14:32:25 +0000
commit373aca5f9c0cd13ff9690369414bb999af886c3c (patch)
tree4a3ef2bf9d4e49afe3ebef3bc5b5933805720502 /package/ltq-vmmc/files
parent448df0ccf7a79fae3a8aef8882720669fc9f0dc7 (diff)
downloadupstream-373aca5f9c0cd13ff9690369414bb999af886c3c.tar.gz
upstream-373aca5f9c0cd13ff9690369414bb999af886c3c.tar.bz2
upstream-373aca5f9c0cd13ff9690369414bb999af886c3c.zip
[lantiq voice]
* rename voice package * sync with lantiqs release * make it work on lantiq kernel git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25275 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ltq-vmmc/files')
-rw-r--r--package/ltq-vmmc/files/vmmc.init25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/ltq-vmmc/files/vmmc.init b/package/ltq-vmmc/files/vmmc.init
new file mode 100644
index 0000000000..bae7badaf0
--- /dev/null
+++ b/package/ltq-vmmc/files/vmmc.init
@@ -0,0 +1,25 @@
+#!/bin/sh /etc/rc.common
+#
+# Activate Voice CPE TAPI subsystem LL driver for VMMC
+
+START=31
+
+start() {
+ # TODO: clean up this mess
+ [ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` = "Twinpass-VE" ] && {
+ [ ! -e /dev/danube-port ] && mknod /dev/danube-port c 254 0
+ return;
+ }
+ [ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` != "Danube" ] && {
+ [ ! -e /dev/amazon_s-port ] && mknod /dev/amazon_s-port c 240 1
+ echo "INFO configuring HW scheduling 33/66"
+ echo "t0 0x0" > /proc/mips/mtsched
+ echo "t1 0x1" > /proc/mips/mtsched
+ echo "v0 0x0" > /proc/mips/mtsched
+ }
+ [ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` = "Danube" ] && {
+ [ ! -e /dev/danube-port ] && mknod /dev/danube-port c 240 1
+ # switch life-line relais
+ echo 1 > /sys/class/leds/fxs_relay/brightness
+ }
+}