blob: a6745136b16dd579f60452a5248315a21c14c230 [file] [log] [blame]
#!/bin/sh
#
# internet.sh,v 10.08.05 2010-08-05 15:00:00
#
# usage: internet.sh
#
path_sh=`nv get path_sh`
. $path_sh/global.sh
echo "Info: internet.sh start" > $test_log
echo "Info: `date +%m-%d_%H:%M:%S`" >> $test_log
echo 7200 > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established
#½«br_name,usblan_name´«¸øÄÚºËʵÏÖÆ½Ì¨»¯
fast_usb=`nv get fast_usb`
echo $lan_if > /proc/net/br_name
echo $fast_usb > /proc/net/usb_name
echo "" > /etc/resolv.conf
#br0´î½¨£¬¼°ÄÚÍødhcp
sh $path_sh/lan.sh
#½«¿ìËÙת·¢¼¶±ð´«¸øÄÚºË
fastnat_level=`nv get fastnat_level`
echo "Info: set fastnat_level£º$fastnat_level" >> $test_log
echo $fastnat_level > /proc/net/fastnat_level
fastbr_level=`nv get fastbr_level`
echo "Info: set fastbr_level: $fastbr_level" >> $test_log
echo $fastbr_level > /proc/net/fastbr_level
#½«²»Ö§³Ö¿ìËÙת·¢µÄЭÒé¶Ë¿ÚºÅ´«¸øÄÚºË
nofast_port=`nv get nofast_port`
echo "Info: set nofast_port£º$nofast_port" >> $test_log
echo $nofast_port > /proc/net/nofast_port