diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-07 01:57:02 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-05-07 01:57:02 +0000 |
commit | c09610dd492a6fa2ea8f5afe6d047936eb48196e (patch) | |
tree | b65c2a904de351658f32a507c82e87f8ec74ce87 /package | |
parent | eb51e36a780349e5c14b1c8aa91d3c5772e197e9 (diff) | |
download | mtk-20170518-c09610dd492a6fa2ea8f5afe6d047936eb48196e.zip mtk-20170518-c09610dd492a6fa2ea8f5afe6d047936eb48196e.tar.gz mtk-20170518-c09610dd492a6fa2ea8f5afe6d047936eb48196e.tar.bz2 |
pptp: don't remove server route if the gateway is 0.0.0.0, this fixes a problem when a pppoe peer is pptp server at the same time
SVN-Revision: 21393
Diffstat (limited to 'package')
-rw-r--r-- | package/pptp/files/pptp.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh index 5151f72..b5a5c06 100644 --- a/package/pptp/files/pptp.sh +++ b/package/pptp/files/pptp.sh @@ -26,7 +26,7 @@ setup_interface_pptp() { setup_interface "$device" "$config" "${ipproto:-dhcp}" local gw="$(find_gw)" [ -n "$gw" ] && { - route delete "$server" 2>/dev/null >/dev/null + [ "$gw" != 0.0.0.0 ] && route delete "$server" 2>/dev/null >/dev/null route add "$server" gw "$gw" } |