1 #!/bin/sh /etc/rc.common
6 [ ! -f /dev
/vmmc10
] && {
7 mknod
/dev
/vmmc10 c
122 10
8 mknod
/dev
/vmmc11 c
122 11
9 mknod
/dev
/vmmc12 c
122 12
10 mknod
/dev
/vmmc13 c
122 13
11 mknod
/dev
/vmmc14 c
122 14
12 mknod
/dev
/vmmc15 c
122 15
13 mknod
/dev
/vmmc16 c
122 16
14 mknod
/dev
/vmmc17 c
122 17
15 mknod
/dev
/vmmc18 c
122 18
19 TD_EXTRA_FLAGS_KPI2UDP
=
20 TD_DOWNLOAD_PATH
=/lib
/firmware
/
21 DEV_NODE_TERIDIAN
=ter10
27 echo " - $0 WAN-IF-NAME - start TAPIDEMO without FXO support"
28 echo " - $0 WAN-IF-NAME fxo - start TAPIDEMO with FXO support."
29 echo " - $0 stop - stop TAPIDEMO"
32 # Check if device node for Teridian exists
35 if [ ! -e /dev
/$DEV_NODE_TERIDIAN ];then
36 echo "FXO support is disabled. Can not find required driver's device node."
38 TD_EXTRA_FLAGS_FXO
="-x"
42 # Check if module drv_kpi2udp is loaded
45 tmp
=`cat /proc/modules | grep 'drv_kpi2udp '`
46 if [ "$tmp" != "" ]; then
47 TD_EXTRA_FLAGS_KPI2UDP
="-q"
55 TD_WANIF_IP
=`ifconfig $TD_WANIF | grep 'inet addr:' | cut -f2 -d: | cut -f1 -d' '`
56 if [ "$TD_WANIF_IP" = "" ]; then
57 echo "Error, getting IP address for network device $TD_WANIF failed."
62 # FXO support is disabled.
64 elif [ "$2" = "fxo" ];then
67 echo "Error, unknown second parameter."
74 if [ -r /etc
/rc.conf
]; then
78 TD_DEBUG_LEVEL
=$tapiDebugLevel
79 if [ "$TD_DEBUG_LEVEL" = "" ]; then
83 /usr
/sbin
/tapidemo
-d $TD_DEBUG_LEVEL $TD_EXTRA_FLAGS_FXO $TD_EXTRA_FLAGS_KPI2UDP -i $TD_WANIF_IP -l $TD_DOWNLOAD_PATH &
88 killall tapidemo
> /dev
/null
2> /dev
/null
This page took 0.050771 seconds and 5 git commands to generate.