Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix random MAC address on reboot or when a VM/LXC is stopped or started. #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion RPiOS64-IA-Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ if [ "$CORRECT" != "y" ]
done
fi

#### MAC ################################################################################################################################
MAC=$(cat /sys/class/net/eth0/address)

#### AGREE TO CHANGES ###################################################################################################################
printf "
$YELLOW#########################################################################################
Expand All @@ -105,6 +108,7 @@ iface vmbr0 inet static
bridge-ports eth0
bridge-stp off
bridge-fd 0
post-up ip link set vmbr0 address $MAC
=========================================================================================
THE HOSTNAMES IN : $YELLOW /etc/hosts $NORMAL WILL BE $RED OVERWRITTEN $NORMAL !!! WITH :
127.0.0.1\tlocalhost
Expand Down Expand Up @@ -183,7 +187,8 @@ iface vmbr0 inet static
gateway $GATEWAY
bridge-ports eth0
bridge-stp off
bridge-fd 0 \n" > /etc/network/interfaces.new
bridge-fd 0
post-up ip link set vmbr0 address $MAC \n" > /etc/network/interfaces.new

#### CONFIGURE PIMOX7 BANNER #############################################################################################################
cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js.auto.backup
Expand Down