summaryrefslogtreecommitdiff
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
commita391a14e23571adfaf61188d212b1d6ce84296f4 (patch)
tree1d1cde54845f6066b4df79d1b316445b126f132e /package/ppp/files
parent4bb94760351400805681058db80d5fb9218a2c7f (diff)
downloadmtk-20170518-a391a14e23571adfaf61188d212b1d6ce84296f4.zip
mtk-20170518-a391a14e23571adfaf61188d212b1d6ce84296f4.tar.gz
mtk-20170518-a391a14e23571adfaf61188d212b1d6ce84296f4.tar.bz2
fix issues with multiple ppp links (noticed by Stefano Rivera)
SVN-Revision: 8563
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 507f453..84def12 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"} \