add hotplug stuff to trunk/

SVN-Revision: 2364
This commit is contained in:
Felix Fietkau
2005-11-07 01:12:51 +00:00
parent 14a88822fd
commit 2e8e51060f
25 changed files with 148 additions and 73 deletions

View File

@@ -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

View File

@@ -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 &