public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, master, updated. cb8ff50d41d82cfcb0680376f50f3a118c63809b
@ 2023-02-20 12:30 Michael Tremer
  0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2023-02-20 12:30 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 2827 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, master has been updated
       via  cb8ff50d41d82cfcb0680376f50f3a118c63809b (commit)
       via  caef75c52974b8fed718ad8b8992442378495e78 (commit)
      from  8284f978db00f1764cde8058b4005f81cadbe286 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cb8ff50d41d82cfcb0680376f50f3a118c63809b
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Mon Feb 20 12:30:19 2023 +0000

    core173: Ship /lib/udev/network-aqm
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

commit caef75c52974b8fed718ad8b8992442378495e78
Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
Date:   Mon Feb 20 12:42:35 2023 +0100

    QMI: Disable raw_ip mode before assigning the new MAC.
    
    To assign a MAC address, the device must not be in
    the raw_ip mode.
    
    Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 config/rootfiles/core/173/filelists/files    | 1 +
 src/initscripts/networking/functions.network | 4 ++++
 2 files changed, 5 insertions(+)

Difference in files:
diff --git a/config/rootfiles/core/173/filelists/files b/config/rootfiles/core/173/filelists/files
index 880562a59..3c2e6fd5a 100644
--- a/config/rootfiles/core/173/filelists/files
+++ b/config/rootfiles/core/173/filelists/files
@@ -148,6 +148,7 @@ lib/firmware/mediatek/WIFI_MT7961_patch_mcu_1_2_hdr.bin
 lib/firmware/mediatek/WIFI_RAM_CODE_MT7961_1.bin
 lib/firmware/qca/nvm_usb_00190200.bin
 lib/firmware/qca/rampatch_usb_00190200.bin
+lib/udev/network-aqm
 lib/udev/network-hotplug-rename
 srv/web/ipfire/cgi-bin/ovpnmain.cgi
 srv/web/ipfire/cgi-bin/pppsetup.cgi
diff --git a/src/initscripts/networking/functions.network b/src/initscripts/networking/functions.network
index 36541eb13..0e2e5009e 100644
--- a/src/initscripts/networking/functions.network
+++ b/src/initscripts/networking/functions.network
@@ -273,6 +273,10 @@ qmi_assign_address() {
 	# Find the device
 	local device="$(qmi_find_device "${intf}")"
 
+	# Switch off the raw_ip mode to be able to proper
+	# assign the generated MAC address.
+	echo "N" > "/sys/class/net/${intf}/qmi/raw_ip"
+
 	local address
 
 	# Generate a "random" MAC address using the device number


hooks/post-receive
--
IPFire 2.x development tree

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-20 12:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-20 12:30 [git.ipfire.org] IPFire 2.x development tree branch, master, updated. cb8ff50d41d82cfcb0680376f50f3a118c63809b Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox