mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 23:24:31 +04:00
modemmanager: change to configuration option disable_modem
This commit sets default of `disable_modem` to 1 and disconnects modem. If set otherwise it keeps the modem connected. Signed-off-by: Christian Korber <ck@dev.tdt.de>
This commit is contained in:
committed by
Florian Eckert
parent
8f0b5561e1
commit
a6b332f4e9
@@ -32,7 +32,6 @@ 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