]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commit
network: Add support for QMI modems
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Sep 2022 15:55:40 +0000 (17:55 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 17:10:25 +0000 (17:10 +0000)
commite7d013331ee5c9da0f5d982764bc0eb5ba17aa36
tree58fcefb1af48a9b1f31a0fea2074acac0ac1f35f
parent2b845972737b42e5cbbdcb20a709845533eff2bc
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