Root/package/ifx-vmmc/files/vmmc.init

1#!/bin/sh /etc/rc.common
2#
3# Activate Voice CPE TAPI subsystem LL driver for VMMC
4
5START=31
6
7start() {
8    # TODO: clean up this mess
9    [ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` = "Twinpass-VE" ] && {
10        [ ! -e /dev/danube-port ] && mknod /dev/danube-port c 254 0
11        return;
12    }
13    [ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` != "Danube" ] && {
14        [ ! -e /dev/amazon_s-port ] && mknod /dev/amazon_s-port c 240 1
15        echo "INFO configuring HW scheduling 33/66"
16        echo "t0 0x0" > /proc/mips/mtsched
17        echo "t1 0x1" > /proc/mips/mtsched
18        echo "v0 0x0" > /proc/mips/mtsched
19    }
20    [ `cat /proc/cpuinfo | grep system | cut -f 3 -d ' '` = "Danube" ] && {
21        [ ! -e /dev/danube-port ] && mknod /dev/danube-port c 240 1
22        # switch life-line relais
23        echo 1 > /sys/class/leds/fxs_relay/brightness
24    }
25}
26

Archive Download this file



interactive