modemmanager: replace modem available check on start with the new monitore service
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 17 Jan 2024 10:07:25 +0000 (11:07 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 19 Jan 2024 07:47:34 +0000 (08:47 +0100)
commitd9b5e06d19ce4983c39051d2c9009260af34f351
tree26cc98ebbbec0b39ee37f972374b9c77cecdc5dd
parentebc903872177437e2a0f1d2d70820bbccf7e3b22
modemmanager: replace modem available check on start with the new monitore service

Before this change, the status of the sysfs paths from the kernel events
was cached with a cache file. This is necessary to mark configured modems
as available for the netifd.

Using the new monitor service via the mmcli command 'mmcli -M' simplifies
the whole process. There is no need to start sub shells in the background
anymore that monitors whether the modem has already been added to the
ModemManager.

For this purpose, a new service was added that reacts on add and remove
events for modems in the ModemManager and, if necessary, marks the logical
netifd interface as available.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/modemmanager/Makefile
net/modemmanager/files/25-modemmanager-usb [deleted file]
net/modemmanager/files/modemmanager.common
net/modemmanager/files/modemmanager.init
net/modemmanager/files/usr/sbin/ModemManager-monitor [new file with mode: 0644]
net/modemmanager/files/usr/sbin/ModemManager-wrapper