aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/files/ppp.sh
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
commita391a14e23571adfaf61188d212b1d6ce84296f4 (patch)
tree1d1cde54845f6066b4df79d1b316445b126f132e /package/ppp/files/ppp.sh
parent4bb94760351400805681058db80d5fb9218a2c7f (diff)
downloadupstream-a391a14e23571adfaf61188d212b1d6ce84296f4.tar.gz
upstream-a391a14e23571adfaf61188d212b1d6ce84296f4.tar.bz2
upstream-a391a14e23571adfaf61188d212b1d6ce84296f4.zip
fix issues with multiple ppp links (noticed by Stefano Rivera)
SVN-Revision: 8563
Diffstat (limited to 'package/ppp/files/ppp.sh')
-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"} \