first try to configure pptp automatically
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Wed, 4 May 2005 07:07:58 +0000 (07:07 +0000)
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>
Wed, 4 May 2005 07:07:58 +0000 (07:07 +0000)
SVN-Revision: 796

openwrt/package/pptp/ipkg/etc/init.d/S50pptp [new file with mode: 0755]
openwrt/package/pptp/ipkg/etc/ppp/options.pptp

diff --git a/openwrt/package/pptp/ipkg/etc/init.d/S50pptp b/openwrt/package/pptp/ipkg/etc/init.d/S50pptp
new file mode 100755 (executable)
index 0000000..34ff8a6
--- /dev/null
@@ -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
+                   
+
index 85b043fabdb3ff997d15c0a2131ad272a780f654..0eb1e87e833e39a67c7d8a6916c52b585efe0e59 100644 (file)
@@ -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