diff options
author | John Crispin <john@openwrt.org> | 2010-03-31 11:12:33 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2010-03-31 11:12:33 +0000 |
commit | 00cb9df7b817384bb9751fe6acaab29f0dd6a404 (patch) | |
tree | 0c5eb147d7008381779269b1a020d188d26c6c12 /package/ifx-vmmc/files | |
parent | 6bfe50b36490ded3f09d7c9841850cbf8c8869f3 (diff) | |
download | upstream-00cb9df7b817384bb9751fe6acaab29f0dd6a404.tar.gz upstream-00cb9df7b817384bb9751fe6acaab29f0dd6a404.tar.bz2 upstream-00cb9df7b817384bb9751fe6acaab29f0dd6a404.zip |
adds voip support
SVN-Revision: 20637
Diffstat (limited to 'package/ifx-vmmc/files')
-rw-r--r-- | package/ifx-vmmc/files/vmmc.init | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/ifx-vmmc/files/vmmc.init b/package/ifx-vmmc/files/vmmc.init new file mode 100644 index 0000000000..bae7badaf0 --- /dev/null +++ b/package/ifx-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 + } +} |