Open GoogleCodeExporter opened 8 years ago
是這段命令結束以後就不能訪問外部網路了,繼續求解!
+ echo [INFO#19073] 07/Oct/2011:13:05:45 preparing the exceptional routes
+ nvram get exroute_enable
+ [ -eq 1 ]
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#19073] 07/Oct/2011:13:05:45 exceptional routes disabled.
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#19073] 07/Oct/2011:13:05:45 exceptional routes features detail:
http://goo.gl/fYfJ
+ echo [INFO#19073] final check the default gw
[INFO#19073] final check the default gw
+ true
+ route -n
+ grep ^0.0.0.0
+ awk {print $2}
+ GW=58.247.192.1
+ echo [DEBUG#19073] my current gw is 58.247.192.1
[DEBUG#19073] my current gw is 58.247.192.1
+ [ 58.247.192.1 == 58.247.192.1 ]
+ echo [DEBUG#19073] GOOD
[DEBUG#19073] GOOD
+ break
+ echo [INFO#19073] static routes added
[INFO#19073] static routes added
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#19073] 07/Oct/2011:13:05:46 vpnup.sh ended
+ rm -f /tmp/autoddvpn.lock
Fri Oct 7 13:05:46 2011 /sbin/route add -net 211.22.125.93 netmask
255.255.255.255 gw 58.247.192.1
Fri Oct 7 13:05:46 2011 /sbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw
192.168.40.5
Fri Oct 7 13:05:46 2011 /sbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw
192.168.40.5
Fri Oct 7 13:05:46 2011 /sbin/route add -net 192.168.40.1 netmask
255.255.255.255 gw 192.168.40.5
Fri Oct 7 13:05:46 2011 Initialization Sequence Completed
現在的服務精簡到如下:
Service: xinetd (/opt/etc/init.d/S10xinetd)
Service: dbus (/opt/etc/init.d/S20dbus)
Service: afpd (/opt/etc/init.d/S21afpd)
Service: avahi (/opt/etc/init.d/S21avahi-daemon)
Service: automount (/opt/etc/init.d/S35automount)
env狀況:
$ env
TERM=xterm-256color
SHELL=/opt/bin/bash
USER=root
LD_LIBRARY_PATH=/opt/lib:
PATH=/opt/bin:/opt/sbin:/opt/usr/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/jffs/sbin:/
jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/mmc/sbin:/mmc/bin:/mmc/usr/sbin:/mmc/usr/
bin
PWD=/jffs/bin
PS1=[\u@\h \W]$
SHLVL=1
HOME=/tmp/root
LOGNAME=root
_=/opt/bin/env
OLDPWD=/tmp/root
PS:
ps -A
PID TTY TIME CMD
1 ? 00:00:01 init
2 ? 00:00:00 keventd
3 ? 00:00:00 ksoftirqd_CPU0
4 ? 00:00:00 kswapd
5 ? 00:00:00 bdflush
6 ? 00:00:00 kupdated
11 ? 00:00:00 mtdblockd
22 ? 00:00:00 watchdog
28 ? 00:00:00 USBLEDprobe
29 ? 00:00:00 khubd
49 ? 00:00:00 usb-storage-0
50 ? 00:00:00 scsi_eh_0
63 ? 00:00:00 kjournald
186 ? 00:00:00 resetbutton
262 ? 00:00:00 telnetd
269 ? 00:00:00 p910nd
290 ? 00:00:10 dnsmasq
375 ? 00:00:00 pppd
376 ? 00:00:00 redial
393 ? 00:00:00 ttraff
405 ? 00:00:00 nas
455 ? 00:00:00 jffs2_gcd_mtd4
687 ? 00:00:00 udhcpd
693 ? 00:01:43 httpd
705 ? 00:00:00 syslogd
714 ? 00:00:00 klogd
720 ? 00:00:00 dropbear
726 ? 00:00:00 macupd
879 ? 00:00:00 process_monitor
972 ? 00:00:00 xinetd
1008 ? 00:00:00 dbus-daemon
1024 ? 00:00:00 afpd
1052 ? 00:00:03 avahi-daemon
1284 ? 00:00:00 upnp
1624 ? 00:00:04 wland
2580 ? 00:00:00 cron
3146 ? 00:00:01 dropbear
3159 ? 00:00:00 sftp-server
4704 ? 00:00:01 dropbear
4705 pts/0 00:00:00 bash
13060 ? 00:00:00 dropbear
13063 pts/1 00:00:00 bash
21666 pts/0 00:00:00 ps
Original comment by oick...@gmail.com
on 7 Oct 2011 at 5:15
沒有人願意慷慨解答麼?
Original comment by oick...@gmail.com
on 13 Oct 2011 at 2:05
Original issue reported on code.google.com by
oick...@gmail.com
on 29 Sep 2011 at 5:41