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:
bdc880a
)
fix passing routes to netifd
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 14 Oct 2011 01:14:06 +0000
(
03:14
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 14 Oct 2011 01:14:06 +0000
(
03:14
+0200)
dummy/netifd-proto.sh
patch
|
blob
|
history
diff --git
a/dummy/netifd-proto.sh
b/dummy/netifd-proto.sh
index
de1961d
..
2a6a393
100755
(executable)
--- a/
dummy/netifd-proto.sh
+++ b/
dummy/netifd-proto.sh
@@
-108,7
+108,7
@@
_proto_push_route() {
local mask="${str%%/*}"
local gw="${str#*/}"
local mask="${str%%/*}"
local gw="${str#*/}"
- json_add_
table
""
+ json_add_
object
""
json_add_string target "$target"
json_add_string mask "$mask"
json_add_string gateway "$gw"
json_add_string target "$target"
json_add_string mask "$mask"
json_add_string gateway "$gw"
@@
-138,8
+138,8
@@
proto_send_update() {
_proto_push_array "ipaddr" "$PROTO_IPADDR" _proto_push_ip
_proto_push_array "ip6addr" "$PROTO_IP6ADDR" _proto_push_ip
_proto_push_array "ipaddr" "$PROTO_IPADDR" _proto_push_ip
_proto_push_array "ip6addr" "$PROTO_IP6ADDR" _proto_push_ip
- _proto_push_array "route" "$PROTO_ROUTE" _proto_push_route
- _proto_push_array "route6" "$PROTO_ROUTE6" _proto_push_route
+ _proto_push_array "route
s
" "$PROTO_ROUTE" _proto_push_route
+ _proto_push_array "route
s
6" "$PROTO_ROUTE6" _proto_push_route
_proto_push_array "dns" "$PROTO_DNS" _proto_push_ip
_proto_push_array "dns_search" "$PROTO_DNS_SEARCH" _proto_push_ip
_proto_notify "$interface"
_proto_push_array "dns" "$PROTO_DNS" _proto_push_ip
_proto_push_array "dns_search" "$PROTO_DNS_SEARCH" _proto_push_ip
_proto_notify "$interface"