projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cc1190
)
shell: support routes without gateway
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 15 Mar 2012 09:46:22 +0000
(10:46 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 15 Mar 2012 09:46:22 +0000
(10:46 +0100)
dummy/netifd-proto.sh
patch
|
blob
|
history
diff --git
a/dummy/netifd-proto.sh
b/dummy/netifd-proto.sh
index 69aa27d4eda34b7eee940691f74f57d2559c008b..7482a83b6552cdd30b0b736276885b7e59b584a5 100755
(executable)
--- a/
dummy/netifd-proto.sh
+++ b/
dummy/netifd-proto.sh
@@
-127,7
+127,7
@@
_proto_push_route() {
json_add_object ""
json_add_string target "$target"
json_add_string netmask "$mask"
- json_add_string gateway "$gw"
+
[ -n "$gw" ] &&
json_add_string gateway "$gw"
json_close_object
}