Skip to content
Permalink
Browse files

Set Ethernet to permanent MAC address

  • Loading branch information...
NEMS Linux
NEMS Linux committed Apr 3, 2019
1 parent 289a66d commit f6f4406734da037134d8921f88c6a1ea3a2e9847
Showing with 16 additions and 1 deletion.
  1. +16 −1 build/190-wifi
@@ -11,7 +11,7 @@ if [[ -e /etc/NetworkManager/NetworkManager.conf ]]; then # Do this on any board
# Detect which is the wireless interface
interface=$(iw dev | awk '$1=="Interface"{print $2}')

# Disable MAC spoofing
# Disable MAC spoofing when scanning WiFi
if ! grep -q "NEMS00003" /etc/NetworkManager/NetworkManager.conf; then

echo "
@@ -29,4 +29,19 @@ wifi.scan-rand-mac-address=no

fi

# Disable MAC spoofing on Ethernet connection
if ! grep -q "NEMS00004" /etc/NetworkManager/NetworkManager.conf; then

echo "
# NEMS00004 Set static MAC address for wlan
[connection]
ethernet.cloned-mac-address=permanent
wifi.cloned-mac-address=permanent
" >> /etc/NetworkManager/NetworkManager.conf

# Restart NetworkManger to re-establish all connections
systemctl restart network-manager

fi

fi

0 comments on commit f6f4406

Please sign in to comment.
You can’t perform that action at this time.