aboutsummaryrefslogtreecommitdiffstats
path: root/package/pptp
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-11-07 01:12:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-11-07 01:12:51 +0000
commitbe5c7d2d2546417767bc5c3471b246fa4f94313e (patch)
tree302a83f06c200757c896bbabe23db4af10445042 /package/pptp
parent816e158a73c253f73d53ec19c73cf6c7ea2e3736 (diff)
downloadupstream-be5c7d2d2546417767bc5c3471b246fa4f94313e.tar.gz
upstream-be5c7d2d2546417767bc5c3471b246fa4f94313e.tar.bz2
upstream-be5c7d2d2546417767bc5c3471b246fa4f94313e.zip
add hotplug stuff to trunk/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2364 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pptp')
-rw-r--r--package/pptp/Makefile2
-rw-r--r--package/pptp/files/ifup.pptp8
2 files changed, 6 insertions, 4 deletions
diff --git a/package/pptp/Makefile b/package/pptp/Makefile
index 3334f23114..870341c87d 100644
--- a/package/pptp/Makefile
+++ b/package/pptp/Makefile
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pptp
PKG_VERSION:=1.6.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_MD5SUM:=9a706327fb9827541d7c86d48ceb9631
PKG_SOURCE_URL:=@SF/pptpclient
diff --git a/package/pptp/files/ifup.pptp b/package/pptp/files/ifup.pptp
index 15178fe302..acaeabd971 100644
--- a/package/pptp/files/ifup.pptp
+++ b/package/pptp/files/ifup.pptp
@@ -22,7 +22,7 @@ while :; do
IDLETIME=$(nvram get ppp_idletime)
IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME}
MTU=$(nvram get ppp_mtu)
- MTU=${MTU:+ mtu $MTU mru $MTU}
+ MTU=${MTU:-1452}
do_ifup $PPTP_PROTO $type
@@ -38,10 +38,12 @@ while :; do
usepeerdns \
defaultroute \
replacedefaultroute \
- linkname $type \
+ linkname "$type" \
+ ipparam "$type" \
user "$USERNAME" \
password "$PASSWORD" \
- $MTU \
+ mtu $MTU \
+ mru $MTU \
$IDLETIME \
$REDIAL
done &