aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-05-07 01:57:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-05-07 01:57:02 +0000
commitc09610dd492a6fa2ea8f5afe6d047936eb48196e (patch)
treeb65c2a904de351658f32a507c82e87f8ec74ce87 /package
parenteb51e36a780349e5c14b1c8aa91d3c5772e197e9 (diff)
downloadupstream-c09610dd492a6fa2ea8f5afe6d047936eb48196e.tar.gz
upstream-c09610dd492a6fa2ea8f5afe6d047936eb48196e.tar.bz2
upstream-c09610dd492a6fa2ea8f5afe6d047936eb48196e.zip
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.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pptp/files/pptp.sh b/package/pptp/files/pptp.sh
index 5151f72733..b5a5c06d07 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"
}