diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-06 18:22:07 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-12-06 18:22:07 +0000 |
commit | 4d347328757ee402cd6742d6827cea5db5b97e74 (patch) | |
tree | d0066513e2ae4477f2064518fdaefa9caf2742b7 /package/ppp/files | |
parent | ab580fbe652ff40d96cfdfad4273cee30047f5d1 (diff) | |
download | openwrt-4d347328757ee402cd6742d6827cea5db5b97e74.tar.gz openwrt-4d347328757ee402cd6742d6827cea5db5b97e74.zip |
AA: ppp: backport r34536
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@34538 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/files')
-rwxr-xr-x | package/ppp/files/ppp.sh | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 7e9b8dd85..43a7de965 100755 --- a/package/ppp/files/ppp.sh +++ b/package/ppp/files/ppp.sh @@ -16,8 +16,6 @@ ppp_generic_init_config() { proto_config_add_string "pppd_options" proto_config_add_string "connect" proto_config_add_string "disconnect" - proto_config_add_boolean "defaultroute" - proto_config_add_boolean "peerdns" proto_config_add_boolean "ipv6" proto_config_add_boolean "authfail" proto_config_add_int "mtu" @@ -26,14 +24,8 @@ ppp_generic_init_config() { ppp_generic_setup() { local config="$1"; shift - json_get_vars ipv6 peerdns defaultroute demand keepalive username password pppd_options + json_get_vars ipv6 demand keepalive username password pppd_options [ "$ipv6" = 1 ] || ipv6="" - [ "$peerdns" = 0 ] && peerdns="" || peerdns="1" - if [ "$defaultroute" = 1 ]; then - defaultroute="defaultroute replacedefaultroute"; - else - defaultroute="nodefaultroute" - fi if [ "${demand:-0}" -gt 0 ]; then demand="precompiled-active-filter /etc/ppp/filter demand idle $demand" else @@ -51,8 +43,9 @@ ppp_generic_setup() { nodetach ipparam "$config" \ ifname "${proto:-ppp}-$config" \ ${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \ - ${ipv6:++ipv6} $defaultroute \ - ${peerdns:+usepeerdns} \ + ${ipv6:++ipv6} \ + nodefaultroute \ + usepeerdns \ $demand maxfail 1 \ ${username:+user "$username" password "$password"} \ ${connect:+connect "$connect"} \ |