Open GoogleCodeExporter opened 8 years ago
我目前手头的路由器是TL_WR841N V7。我下载了 issue 92 里面的固件。 现在遇到了PPTP VPN不能使用的问题。当然我首先排除了VPN账号设置错误的原�� �。 我登陆到路由器,首先检查log。 但是发现log文件并未生成 然后我手动去起/usr/local/bin 下的run.sh, 得到如下log root@DD-WRT:/usr/local/bin# vi /tmp/autoddvpn.log [INFO#1500] 18/Jul/2012:15:27:22 log starts [INFO#1500] 18/Jul/2012:15:27:22 CustomFirmware mode with PPTP [INFO#1500] 18/Jul/2012:15:27:22 modifying /tmp/pptpd_client/ip-up [INFO#1500] 18/Jul/2012:15:27:22 /tmp/pptpd_client/ip-up modified [INFO#1500] 18/Jul/2012:15:27:22 modifying /tmp/pptpd_client/ip-down [INFO#1500] 18/Jul/2012:15:27:22 /tmp/pptpd_client/ip-down modified [INFO#1500] 18/Jul/2012:15:27:22 ALL DONE. Let's wait for VPN being connected. ~ 然后就一直这样了。于是我再手动起 vpnup.sh 得到如下错误 root@DD-WRT:/usr/local/bin# ./vpnup.sh + export PATH=/bin:/sbin:/usr/sbin:/usr/bin + LOG=/tmp/autoddvpn.log + LOCK=/tmp/autoddvpn.lock + PID=1632 + EXROUTEDIR=/jffs/exroute.d + INFO=[INFO#1632] + DEBUG=[DEBUG#1632] + ERROR=[ERROR#1632] + date +%d/%b/%Y:%H:%M:%S + echo [INFO#1632] 18/Jul/2012:15:29:49 vpnup.sh started + [ -f /tmp/autoddvpn.lock ] + break + [ -f /tmp/autoddvpn.lock ] + date +%d/%b/%Y:%H:%M:%S + echo [INFO#1632] 18/Jul/2012:15:29:49 vpnup + nvram get wan_gateway + OLDGW=192.168.1.1 + date +%d/%b/%Y:%H:%M:%S + echo [INFO#1632] 18/Jul/2012:15:29:49 unknown vpnup.sh parameter,quit. + exit 1 初步看了一下(我不懂这个脚本的语法 只是初步估计) 应该是判断是PPTP还是OPENVPN模式的时候出现了另外一个值。 所以到这里我已经束手无策了。 其实这里有两个问题 第一歌是脚本为什么没有自动起 第二才是脚本里的unknown parameter是怎么回事
Original issue reported on code.google.com by Zhuchao...@gmail.com on 18 Jul 2012 at 1:45
Zhuchao...@gmail.com
这个脚本$1你没有传参数 你试试./vpnup.sh pptp
Original comment by gavin.li...@gmail.com on 5 May 2013 at 9:05
gavin.li...@gmail.com
Original issue reported on code.google.com by
Zhuchao...@gmail.com
on 18 Jul 2012 at 1:45