mirror of
https://github.com/femtofox/femtofox.git
synced 2026-12-04 05:40:16 -05:00
Fixed for auto route updating
Already doing this with changes in /etc/network/interfaces
This commit is contained in:
parent
f8f2a9cb82
commit
04a85d3e0c
1 changed files with 1 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue