]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - src/initscripts/networking/dhcpcd.exe
network: Add support for QMI modems
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 17:22:55 +0000 (17:22 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 17 Dec 2022 17:20:45 +0000 (17:20 +0000)
commit957863f754deb9351bd1c53c16f53ef84ac86add
tree25a565da2d9c86f93e36333b94feab83c1a9c0c2
parentc6551e73c23d4661f70a7e4f342035bc6f901a86
network: Add support for QMI modems

QMI is a proprietary interface from Qualcomm which are absolute pioneers
when it comes to interfacing with modems. I don't think there would be
any way to make this any more complicated and bloated.

So, bascially we will put the modem into a raw IP mode which changes the
interface into Point-to-Point mode.

We then configure the provider settings using qmicli. After that, the
modem will try to connect to the provider and obtain an IP address.

We will then start a DHCP client which does not do any DHCP-ing because
implementing that would be too complicated. Instead we do something even
*more* complicated where we would launch a custom script which asks the
modem for the allocated IP address and will configure it into the
device. The DHCP client then reads that IP address from the device and
pretends it came up with it by itself. Such an easy way to do this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/networking/dhcpcd.exe
src/initscripts/networking/functions.network
src/initscripts/networking/red