mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 04:08:21 +04:00
modemmanager: do not disable modem on reconnect
If the modem loses the connection, an attempt is made to re-establish the connection via the report-down script. Until now, the modem was disabled when the modem processed the teardown of the modemmanager protohandler. The immediate up events of netifd renables the modem right away. This takes time, which is not necessary. This commit changes the behavior so that the modem is not disabled when the modemmanager is disconnected via the report-down script. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
committed by
Florian Eckert
parent
f9dbeea92b
commit
434c353e62
@@ -32,6 +32,7 @@ IFUP=$(ifstatus "${CFG}" | jsonfilter -e "@.up")
|
||||
|
||||
[ "${IFUP}" = "true" ] && {
|
||||
mm_log "info" "Reconnecting '${CFG}' on '${STATE}' event"
|
||||
uci_toggle_state network "${CFG}" disable_modem "0"
|
||||
ubus call network.interface down "{ 'interface': '${CFG}'}"
|
||||
ubus call network.interface up "{ 'interface': '${CFG}'}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user