Making the Brovi E3372-325 4G/LTE modem work on OpenWRT 22.03

The device seems to have some compatibility quirks concerning Linux support at least with the firmware version I received it with. An elusive update which cannot be found anywhere is claimed to resolve the issues.
For OpenWRT I eventually managed to use information from multiple sources to botch up a script that performs the necessary mode switching to get it working.