blob: a6745136b16dd579f60452a5248315a21c14c230 [file] [log] [blame]
xf.li86118912025-03-19 20:07:27 -07001#!/bin/sh
2#
3# internet.sh,v 10.08.05 2010-08-05 15:00:00
4#
5# usage: internet.sh
6#
7path_sh=`nv get path_sh`
8. $path_sh/global.sh
9echo "Info: internet.sh start" > $test_log
10echo "Info: `date +%m-%d_%H:%M:%S`" >> $test_log
11
12echo 7200 > /proc/sys/net/netfilter/nf_conntrack_tcp_timeout_established
13
14#½«br_name,usblan_name´«¸øÄÚºËʵÏÖÆ½Ì¨»¯
15fast_usb=`nv get fast_usb`
16
17echo $lan_if > /proc/net/br_name
18
19echo $fast_usb > /proc/net/usb_name
20
21echo "" > /etc/resolv.conf
22
23#br0´î½¨£¬¼°ÄÚÍødhcp
24sh $path_sh/lan.sh
25
26#½«¿ìËÙת·¢¼¶±ð´«¸øÄÚºË
27fastnat_level=`nv get fastnat_level`
28echo "Info: set fastnat_level£º$fastnat_level" >> $test_log
29echo $fastnat_level > /proc/net/fastnat_level
30
31fastbr_level=`nv get fastbr_level`
32echo "Info: set fastbr_level: $fastbr_level" >> $test_log
33echo $fastbr_level > /proc/net/fastbr_level
34
35#½«²»Ö§³Ö¿ìËÙת·¢µÄЭÒé¶Ë¿ÚºÅ´«¸øÄÚºË
36nofast_port=`nv get nofast_port`
37echo "Info: set nofast_port£º$nofast_port" >> $test_log
38echo $nofast_port > /proc/net/nofast_port