|
|
http://www.linuxsir.cn/bbs/showthread.php?p=1318458#post1318458
大家请看
如何结束lcp呢? 我看不太懂下面命令。。。。
You MUST disable the lines that give values for lcp-echo-interval and lcp-echo-failure or your connection will always terminate (eg after two minutes). It appears that GPRS providers do not reply to lcp echo requests but pppd normally uses these to determine if the connection is still good.
/etc/apm/event.d/ppp:
#!/bin/sh
# stop and also restore ppp connection
case "$1" in
suspend)
/usr/bin/poff
;;
resume)
(sleep 15 && /sbin/ifconfig eth0 >/dev/null 2>&1 || pon tmobile) &
;;
esac
http://www.laikan8.com/8/55410.html |
|