X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=dummy%2Fnetifd-proto.sh;h=7482a83b6552cdd30b0b736276885b7e59b584a5;hp=69aa27d4eda34b7eee940691f74f57d2559c008b;hb=15bf3d441fd429f2b6ff18cc0c351ac8d3dd655f;hpb=2cc1190666ddfb2dc2a5fbf4febe7a4579d0c2f5 diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh index 69aa27d..7482a83 100755 --- 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 }