From: Felix Fietkau Date: Fri, 31 Aug 2007 16:19:19 +0000 (+0000) Subject: fix issues with multiple ppp links (noticed by Stefano Rivera) X-Git-Tag: reboot~28253 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a391a14e23571adfaf61188d212b1d6ce84296f4;p=openwrt%2Fstaging%2Fblogic.git fix issues with multiple ppp links (noticed by Stefano Rivera) SVN-Revision: 8563 --- diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 507f453fcd11..84def1285b15 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"} \