From: Jo-Philipp Wich Date: Fri, 7 May 2010 01:57:02 +0000 (+0000) Subject: pptp: don't remove server route if the gateway is 0.0.0.0, this fixes a problem when... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c09610dd492a6fa2ea8f5afe6d047936eb48196e;p=openwrt%2Fstaging%2Fthess.git 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 --- 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" }