From 57b3da14cd145a03f399b29b5e9eb15206f6cc79 Mon Sep 17 00:00:00 2001 From: nico Date: Wed, 18 May 2005 23:42:09 +0000 Subject: Convert pptp to new packaging style git-svn-id: svn://svn.openwrt.org/openwrt/trunk@941 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/pptp/files/options.pptp | 12 ++++++++++++ openwrt/package/pptp/files/pptp.init | 18 ++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 openwrt/package/pptp/files/options.pptp create mode 100644 openwrt/package/pptp/files/pptp.init (limited to 'openwrt/package/pptp/files') diff --git a/openwrt/package/pptp/files/options.pptp b/openwrt/package/pptp/files/options.pptp new file mode 100644 index 000000000..0eb1e87e8 --- /dev/null +++ b/openwrt/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/openwrt/package/pptp/files/pptp.init b/openwrt/package/pptp/files/pptp.init new file mode 100644 index 000000000..34ff8a63b --- /dev/null +++ b/openwrt/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 + + -- cgit v1.2.3