diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-09-01 12:57:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-09-01 12:57:15 +0000 |
commit | 393c8bff072731e5ab2e544d286ebd68522787e6 (patch) | |
tree | 680e479180a5527313c2e02d97b5536bf2b38233 /package | |
parent | ef9d1183593826eebda8cbdd406cf2f54ee09949 (diff) | |
download | upstream-393c8bff072731e5ab2e544d286ebd68522787e6.tar.gz upstream-393c8bff072731e5ab2e544d286ebd68522787e6.tar.bz2 upstream-393c8bff072731e5ab2e544d286ebd68522787e6.zip |
allow the user to disable the defaultroute option for ppp
SVN-Revision: 8569
Diffstat (limited to 'package')
-rw-r--r-- | package/ppp/files/ppp.sh | 5 |
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" \ |