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 | a3e63660dcd5aed7abc3c49bef55245f390fb19d (patch) | |
tree | 89a19f21cfda98f6332f89023f3eb48fa29fe48e /package/pptp | |
parent | 4c686abd91aab45c07b75063be2a081e7f8cec38 (diff) | |
download | master-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.sh | 2 |
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" } |