diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-11-07 01:12:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-11-07 01:12:51 +0000 |
commit | 2e8e51060ffcc46bb1308d7eae4d2bc3456deacf (patch) | |
tree | c82e5b250e3389ec4e4fe8ef16361eae61572845 /openwrt/package/pptp | |
parent | 14a88822fd3f6883af5b4d66f584a3254202fd29 (diff) | |
download | mtk-20170518-2e8e51060ffcc46bb1308d7eae4d2bc3456deacf.zip mtk-20170518-2e8e51060ffcc46bb1308d7eae4d2bc3456deacf.tar.gz mtk-20170518-2e8e51060ffcc46bb1308d7eae4d2bc3456deacf.tar.bz2 |
add hotplug stuff to trunk/
SVN-Revision: 2364
Diffstat (limited to 'openwrt/package/pptp')
-rw-r--r-- | openwrt/package/pptp/Makefile | 2 | ||||
-rw-r--r-- | openwrt/package/pptp/files/ifup.pptp | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/openwrt/package/pptp/Makefile b/openwrt/package/pptp/Makefile index 3334f23..870341c 100644 --- a/openwrt/package/pptp/Makefile +++ b/openwrt/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/openwrt/package/pptp/files/ifup.pptp b/openwrt/package/pptp/files/ifup.pptp index 15178fe..acaeabd 100644 --- a/openwrt/package/pptp/files/ifup.pptp +++ b/openwrt/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 & |