mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:30:37 +02:00
allow the user to disable the defaultroute option for ppp
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8569 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
947d2b4338
commit
17b183947d
@ -26,6 +26,8 @@ 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
|
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" != "$keepalive" ] || interval=5
|
[ "$interval" != "$keepalive" ] || interval=5
|
||||||
@ -36,8 +38,7 @@ start_pppd() {
|
|||||||
${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \
|
${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \
|
||||||
${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
|
${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
|
||||||
usepeerdns \
|
usepeerdns \
|
||||||
defaultroute \
|
$defaultroute \
|
||||||
replacedefaultroute \
|
|
||||||
${username:+user "$username" password "$password"} \
|
${username:+user "$username" password "$password"} \
|
||||||
unit "$unit" \
|
unit "$unit" \
|
||||||
linkname "$cfg" \
|
linkname "$cfg" \
|
||||||
|
Loading…
Reference in New Issue
Block a user