Fixed for auto route updating

Already doing this with changes in /etc/network/interfaces
This commit is contained in:
Ruledo 2025-02-18 23:17:10 -08:00
parent f8f2a9cb82
commit 04a85d3e0c

View file

@ -79,10 +79,7 @@ mac="$(awk '/Serial/ {print $3}' /proc/cpuinfo | tail -c 11 | sed 's/^\(.*\)/a2\
if ! grep -q "eth0" /etc/network/interfaces; then
log_message "Setting eth0 MAC address to $mac (derivative of CPU s/n)"
cat <<EOF >> /etc/network/interfaces
# static mac address for onboard ethernet (castellated pins)
allow-hotplug eth0
iface eth0 inet dhcp
hwaddress ether $mac
hwaddress ether $mac
EOF
else
log_message "eth0 already exists in /etc/network/interfaces, skipping"