projects
/
openwrt
/
staging
/
lynxis
/
omap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gre: Remove ttl default value assignment (FS#312)
[openwrt/staging/lynxis/omap.git]
/
package
/
network
/
config
/
gre
/
files
/
gre.sh
diff --git
a/package/network/config/gre/files/gre.sh
b/package/network/config/gre/files/gre.sh
index 3f472c447388998b9fdff8eb5ac5281c20cef7e8..58db1d1381eb63347a2b229135bf7dfc34cbc7c0 100755
(executable)
--- a/
package/network/config/gre/files/gre.sh
+++ b/
package/network/config/gre/files/gre.sh
@@
-25,7
+25,7
@@
gre_generic_setup() {
json_add_string mode "$mode"
json_add_int mtu "${mtu:-1280}"
[ -n "$df" ] && json_add_boolean df "$df"
json_add_string mode "$mode"
json_add_int mtu "${mtu:-1280}"
[ -n "$df" ] && json_add_boolean df "$df"
-
json_add_int ttl "${ttl:-64}
"
+
[ -n "ttl" ] && json_add_int ttl "$ttl
"
[ -n "$tos" ] && json_add_string tos "$tos"
json_add_boolean multicast "$multicast"
json_add_string local "$local"
[ -n "$tos" ] && json_add_string tos "$tos"
json_add_boolean multicast "$multicast"
json_add_string local "$local"