diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-08-31 16:19:19 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-08-31 16:19:19 +0000 |
commit | a391a14e23571adfaf61188d212b1d6ce84296f4 (patch) | |
tree | 1d1cde54845f6066b4df79d1b316445b126f132e /package/ppp/files/ppp.sh | |
parent | 4bb94760351400805681058db80d5fb9218a2c7f (diff) | |
download | upstream-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.sh | 2 |
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"} \ |