]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/initscripts/networking/functions.network
core186: ship header.pl
[ipfire-2.x.git] / src / initscripts / networking / functions.network
index 36541eb13792d0ab55ab52a9acfa7f12e62ea34f..4c7ad51d470023ca60272696c05b15f6f4f99d1b 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
@@ -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