summaryrefslogtreecommitdiff
path: root/openwrt/package/pptp/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-07 01:12:51 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-11-07 01:12:51 +0000
commit5dfad9395848f74699752473b825635c30fb5567 (patch)
tree523205d7071063e42f742aeabadd523f78b8504f /openwrt/package/pptp/files
parentbdd94763c1c3c236e2bd8b2282dad526e08bbb66 (diff)
add hotplug stuff to trunk/
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2364 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/pptp/files')
-rw-r--r--openwrt/package/pptp/files/ifup.pptp8
1 files changed, 5 insertions, 3 deletions
diff --git a/openwrt/package/pptp/files/ifup.pptp b/openwrt/package/pptp/files/ifup.pptp
index 15178fe302..acaeabd971 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 &