NOT-FOR-MERGE: ignore disconnecting network interface

when moving a wwanX interface to a lxc container ofono gets "remove" event.
Ignoring the "remove" events allow this to work without ofono is removing
the whole modem
This commit is contained in:
Alexander Couzens 2018-09-15 19:54:16 +02:00
parent b494ae129d
commit 45eddec130
1 changed files with 5 additions and 0 deletions

View File

@ -1317,6 +1317,11 @@ static gboolean check_remove(gpointer key, gpointer value, gpointer user_data)
for (list = modem->devices; list; list = list->next) {
struct device_info *info = list->data;
/* ignore net subsystem to allow the device to be given into
* an lxc container */
if (g_strcmp0(info->subsystem, "net") == 0)
continue;
if (g_strcmp0(info->devpath, devpath) == 0)
return TRUE;
}