mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 01:41:05 +02:00
fix ppp unit number issues (#2178)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8665 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d275f1aba0
commit
de3a8f9eb7
@ -1,9 +1,12 @@
|
||||
scan_ppp() {
|
||||
config_get ifname "$1" ifname
|
||||
pppdev="${pppdev:-0}"
|
||||
config_set "$1" ifname "ppp$pppdev"
|
||||
config_set "$1" unit "$pppdev"
|
||||
pppdev="$(($pppdev + 1))"
|
||||
config_get unit "$1" unit
|
||||
[ -z "$unit" ] && {
|
||||
config_set "$1" ifname "ppp$pppdev"
|
||||
config_set "$1" unit "$pppdev"
|
||||
pppdev="$(($pppdev + 1))"
|
||||
}
|
||||
}
|
||||
|
||||
start_pppd() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user