mirror of git://git.sysmocom.de/ofono
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:
parent
b494ae129d
commit
45eddec130
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue