aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-08-31 16:19:19 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-08-31 16:19:19 +0000
commitf9b19d8d1c4eaea25a3c9158c3044a931dcf9b58 (patch)
tree62df50b181414ace079b9350a0b25169fbf4190a /package/ppp/files
parent8fad67f43b0a79d767397e787aa55c6af253e08a (diff)
downloadmaster-187ad058-f9b19d8d1c4eaea25a3c9158c3044a931dcf9b58.tar.gz
master-187ad058-f9b19d8d1c4eaea25a3c9158c3044a931dcf9b58.tar.bz2
master-187ad058-f9b19d8d1c4eaea25a3c9158c3044a931dcf9b58.zip
fix issues with multiple ppp links (noticed by Stefano Rivera)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8563 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/files')
-rw-r--r--package/ppp/files/ppp.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh
index 507f453fcd..84def1285b 100644
--- a/package/ppp/files/ppp.sh
+++ b/package/ppp/files/ppp.sh
@@ -3,6 +3,7 @@ scan_ppp() {
pppdev="${pppdev:-0}"
config_set "$1" ifname "ppp$pppdev"
config_set "$1" unit "$pppdev"
+ pppdev="$(($pppdev + 1))"
}
start_pppd() {
@@ -38,6 +39,7 @@ start_pppd() {
defaultroute \
replacedefaultroute \
${username:+user "$username" password "$password"} \
+ unit "$pppdev" \
linkname "$cfg" \
ipparam "$cfg" \
${connect:+connect "$connect"} \