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