aboutsummaryrefslogtreecommitdiffstats
path: root/package/pptp
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
commita3e63660dcd5aed7abc3c49bef55245f390fb19d (patch)
tree89a19f21cfda98f6332f89023f3eb48fa29fe48e /package/pptp
parent4c686abd91aab45c07b75063be2a081e7f8cec38 (diff)
downloadmaster-187ad058-a3e63660dcd5aed7abc3c49bef55245f390fb19d.tar.gz
master-187ad058-a3e63660dcd5aed7abc3c49bef55245f390fb19d.tar.bz2
master-187ad058-a3e63660dcd5aed7abc3c49bef55245f390fb19d.zip
[package] 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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21393 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pptp')
-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"
}