diff options
author | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-04 07:07:58 +0000 |
---|---|---|
committer | wbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-04 07:07:58 +0000 |
commit | e6082d4f06b7ef223bdf62198138349b692b0d5e (patch) | |
tree | 5814251b768501827bbe96a51ef9c317c5eec2c5 /package/pptp/ipkg | |
parent | 96f3c2a9368794c9aa7acb634b22d101106daf0c (diff) |
first try to configure pptp automatically
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@796 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pptp/ipkg')
-rwxr-xr-x | package/pptp/ipkg/etc/init.d/S50pptp | 18 | ||||
-rw-r--r-- | package/pptp/ipkg/etc/ppp/options.pptp | 13 |
2 files changed, 30 insertions, 1 deletions
diff --git a/package/pptp/ipkg/etc/init.d/S50pptp b/package/pptp/ipkg/etc/init.d/S50pptp new file mode 100755 index 000000000..34ff8a63b --- /dev/null +++ b/package/pptp/ipkg/etc/init.d/S50pptp @@ -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 + + diff --git a/package/pptp/ipkg/etc/ppp/options.pptp b/package/pptp/ipkg/etc/ppp/options.pptp index 85b043fab..0eb1e87e8 100644 --- a/package/pptp/ipkg/etc/ppp/options.pptp +++ b/package/pptp/ipkg/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 |