#!/bin/sh
mount -a
insmod /lib/modules/2.6.21/kernel/net/netfilter/xt_webstr  > /dev/null 2>&1
insmod /lib/modules/2.6.21/kernel/drivers/dray_hw.ko > /dev/null 2>&1
insmod /lib/modules/2.6.21/kernel/drivers/net/dray_limit.ko > /dev/null 2>&1
mkdir -p /var/run
cat /etc_ro/motd
nvram_daemon&
/sbin/3g_reboot.sh
goahead&
tr069_client&
/sbin/wan_det.sh &
echo 300 > /proc/sys/net/ipv4/netfilter/ip_conntrack_generic_timeout
echo 2 > /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_time_wait
echo 60 > /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout
echo 60 > /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout_stream
/bin/usb_app &
/bin/3g_backup &
/bin/dray_fwup &

# DO NOT change the order of the following two lines
insmod /lib/modules/2.6.21/kernel/drivers/net/lte_drivers/lte_drv.ko
/bin/lte_d &

#for telnet debugging
telnetd.sh

#for syslogd
mkdir -p /var/log

#set ACT LED again, Bruce move this command to 3g_reboot.sh
#gpio l 9 8 8 4000 0 4000

insmod vpdrv.ko
sleep 2
drayvoip -d -l 3

