mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
parent
e3dc76af1b
commit
469c658898
@ -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…
Reference in New Issue
Block a user