diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-31 16:19:19 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-31 16:19:19 +0000 |
commit | 0b509e2ff238b0d1f3835becd75376a4b6190d8c (patch) | |
tree | 62df50b181414ace079b9350a0b25169fbf4190a /package/ppp | |
parent | 437677dfb4af6042196c1cd57e5d8549f23db7b5 (diff) |
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')
-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 507f453fc..84def1285 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"} \ |