modemmanager: flag as available and no_device when initializing

Otherwise, if the modem is reseted, netifd will think that the device
is gone forever.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
This commit is contained in:
Aleksander Morgado
2019-11-19 13:54:50 +01:00
parent 92781ecc7f
commit cc4ee2fd3c
2 changed files with 3 additions and 1 deletions
@@ -304,6 +304,8 @@ modemmanager_disconnected_method_common() {
}
proto_modemmanager_init_config() {
available=1
no_device=1
proto_config_add_string "device:device"
proto_config_add_string apn
proto_config_add_string username