mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 12:32:59 +02:00
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@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
8284f978db
commit
caef75c529
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user