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 | f9b19d8d1c4eaea25a3c9158c3044a931dcf9b58 (patch) | |
tree | 62df50b181414ace079b9350a0b25169fbf4190a /package/ppp | |
parent | 8fad67f43b0a79d767397e787aa55c6af253e08a (diff) | |
download | upstream-f9b19d8d1c4eaea25a3c9158c3044a931dcf9b58.tar.gz upstream-f9b19d8d1c4eaea25a3c9158c3044a931dcf9b58.tar.bz2 upstream-f9b19d8d1c4eaea25a3c9158c3044a931dcf9b58.zip |
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 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"} \ |