Browse Source

modemmanager: add proto dynamic defaults on dhcp setup

Also, explicitly close the JSON object.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
lilik-openwrt-22.03
Aleksander Morgado 5 years ago
parent
commit
fc47c47b39
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      net/modemmanager/Makefile
  2. +2
    -0
      net/modemmanager/files/modemmanager.proto

+ 1
- 1
net/modemmanager/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=modemmanager
PKG_VERSION:=1.10.8
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE:=ModemManager-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.freedesktop.org/software/ModemManager


+ 2
- 0
net/modemmanager/files/modemmanager.proto View File

@ -175,7 +175,9 @@ modemmanager_connected_method_dhcp() {
json_add_string name "${interface}_4"
json_add_string ifname "@${interface}"
json_add_string proto "dhcp"
proto_add_dynamic_defaults
[ -n "$metric" ] && json_add_int metric "${metric}"
json_close_object
ubus call network add_dynamic "$(json_dump)"
}


Loading…
Cancel
Save