summaryrefslogtreecommitdiffstats
path: root/package/pptp/files
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-18 23:42:09 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-05-18 23:42:09 +0000
commit1827dd39e4ef9f2fdf6594029bf1d920c75ede5b (patch)
tree6070278b9ccb45b0fbd50513304e84b1cceb5069 /package/pptp/files
parentc49c4efbf0d97a4c5d00ee5bfd0764134d5e72d2 (diff)
Convert pptp to new packaging style
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@941 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pptp/files')
-rw-r--r--package/pptp/files/options.pptp12
-rw-r--r--package/pptp/files/pptp.init18
2 files changed, 30 insertions, 0 deletions
diff --git a/package/pptp/files/options.pptp b/package/pptp/files/options.pptp
new file mode 100644
index 000000000..0eb1e87e8
--- /dev/null
+++ b/package/pptp/files/options.pptp
@@ -0,0 +1,12 @@
+lock
+noauth
+nobsdcomp
+nodeflate
+mtu 1490
+mru 1490
+lcp-echo-failure 5
+lcp-echo-interval 120
+idle 0
+defaultroute
+name xxxx
+remotename xxxx
diff --git a/package/pptp/files/pptp.init b/package/pptp/files/pptp.init
new file mode 100644
index 000000000..34ff8a63b
--- /dev/null
+++ b/package/pptp/files/pptp.init
@@ -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
+
+