summaryrefslogtreecommitdiff
path: root/package/ppp/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-01 12:57:15 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-01 12:57:15 +0000
commit17b183947df361ae3a3db50a0e29428b6725b82b (patch)
treece120169720d539b7b571113f55ae7ed28781501 /package/ppp/files
parent947d2b4338bf25e837e9a39ff3b86b51df68981d (diff)
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
Diffstat (limited to 'package/ppp/files')
-rw-r--r--package/ppp/files/ppp.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh
index 63d8cc43f2..9f50e85ef2 100644
--- a/package/ppp/files/ppp.sh
+++ b/package/ppp/files/ppp.sh
@@ -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" \