public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <git@ipfire.org>
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, master, updated. cb8ff50d41d82cfcb0680376f50f3a118c63809b
Date: Mon, 20 Feb 2023 12:30:40 +0000	[thread overview]
Message-ID: <4PL1wc3TT2z2y8Z@people01.haj.ipfire.org> (raw)

[-- 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

                 reply	other threads:[~2023-02-20 12:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4PL1wc3TT2z2y8Z@people01.haj.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox