aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/files/ppp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/ppp/files/ppp.sh')
-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 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"} \