mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-10 14:43:07 +02:00
first try to configure pptp automatically
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@796 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
50d17fd6a3
commit
2746a82942
18
openwrt/package/pptp/ipkg/etc/init.d/S50pptp
Executable file
18
openwrt/package/pptp/ipkg/etc/init.d/S50pptp
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/functions.sh
|
||||
|
||||
WAN_PROTO=$(nvram get wan_proto)
|
||||
[ "$WAN_PROTO" = "pptp" ] || exit 0
|
||||
|
||||
for module in ip_gre slhc ppp_generic ppp_async ppp_deflate ; do
|
||||
/sbin/insmod $module 2>/dev/null >/dev/null
|
||||
done
|
||||
|
||||
if test -d "/var/lock"; then
|
||||
mkdir -p /var/lock || exit 1
|
||||
fi
|
||||
|
||||
/usr/sbin/pppd pty "pptp x.x.x.x --loglevel 0 --nolaunchpppd" file /etc/ppp/options.pptp
|
||||
|
||||
|
@ -1 +1,12 @@
|
||||
lock noauth nobsdcomp nodeflate
|
||||
lock
|
||||
noauth
|
||||
nobsdcomp
|
||||
nodeflate
|
||||
mtu 1490
|
||||
mru 1490
|
||||
lcp-echo-failure 5
|
||||
lcp-echo-interval 120
|
||||
idle 0
|
||||
defaultroute
|
||||
name xxxx
|
||||
remotename xxxx
|
||||
|
Loading…
Reference in New Issue
Block a user