projects
/
openwrt
/
staging
/
neocturne.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb51e36
)
pptp: don't remove server route if the gateway is 0.0.0.0, this fixes a problem when...
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 7 May 2010 01:57:02 +0000
(
01:57
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 7 May 2010 01:57:02 +0000
(
01:57
+0000)
SVN-Revision: 21393
package/pptp/files/pptp.sh
patch
|
blob
|
history
diff --git
a/package/pptp/files/pptp.sh
b/package/pptp/files/pptp.sh
index 5151f727338f5624ae910fc559c28003b6117d3e..b5a5c06d0751cb8d8e9c07a6e4218f31b222d155 100644
(file)
--- 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"
}