mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 05:04:04 +02:00
add pppd options patch from #2114
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8116 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
263c7a7069
commit
b8e8a507ad
@ -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…
Reference in New Issue
Block a user