mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
parent
35d116c85b
commit
da3f65f28c
@ -24,6 +24,7 @@ start_pppd() {
|
|||||||
|
|
||||||
config_get connect "$cfg" connect
|
config_get connect "$cfg" connect
|
||||||
config_get disconnect "$cfg" disconnect
|
config_get disconnect "$cfg" disconnect
|
||||||
|
config_get pppd_options "$cfg" pppd_options
|
||||||
|
|
||||||
interval="${keepalive##*[, ]}"
|
interval="${keepalive##*[, ]}"
|
||||||
[ "$interval" != "$keepalive" ] || interval=5
|
[ "$interval" != "$keepalive" ] || interval=5
|
||||||
@ -40,7 +41,8 @@ start_pppd() {
|
|||||||
linkname "$cfg" \
|
linkname "$cfg" \
|
||||||
ipparam "$cfg" \
|
ipparam "$cfg" \
|
||||||
${connect:+connect "$connect"} \
|
${connect:+connect "$connect"} \
|
||||||
${disconnect:+disconnect "$disconnect"}
|
${disconnect:+disconnect "$disconnect"} \
|
||||||
|
${pppd_options}
|
||||||
|
|
||||||
lock -u "/var/lock/ppp-${cfg}"
|
lock -u "/var/lock/ppp-${cfg}"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user