IFUP=$(ifstatus "${CFG}" | jsonfilter -e "@.up")
[ "${IFUP}" = "true" ] && {
- logger -t "modemmanager" "interface ${CFG} (network device ${INTERFACE}) ${STATE}"
- proto_init_update $INTERFACE 0
- proto_send_update $CFG
+ mm_log "info" "Reconnecting '${CFG}' on '${STATE}' event"
+ ubus call network.interface down "{ 'interface': '${CFG}'}"
+ ubus call network.interface up "{ 'interface': '${CFG}'}"
}
exit 0