mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
allow the user to disable the defaultroute option for ppp
SVN-Revision: 8569
This commit is contained in:
parent
ef9d118359
commit
393c8bff07
@ -26,6 +26,8 @@ start_pppd() {
|
||||
config_get connect "$cfg" connect
|
||||
config_get disconnect "$cfg" disconnect
|
||||
config_get pppd_options "$cfg" pppd_options
|
||||
config_get_bool defaultroute "$cfg" defaultroute 1
|
||||
[ "$defaultroute" -eq 1 ] && defaultroute="defaultroute replacedefaultroute" || defaultroute=""
|
||||
|
||||
interval="${keepalive##*[, ]}"
|
||||
[ "$interval" != "$keepalive" ] || interval=5
|
||||
@ -36,8 +38,7 @@ start_pppd() {
|
||||
${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \
|
||||
${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
|
||||
usepeerdns \
|
||||
defaultroute \
|
||||
replacedefaultroute \
|
||||
$defaultroute \
|
||||
${username:+user "$username" password "$password"} \
|
||||
unit "$unit" \
|
||||
linkname "$cfg" \
|
||||
|
Loading…
Reference in New Issue
Block a user