Update rootfs_script.sh

pull/1681/head
Huang jinlong 2024-12-11 09:54:15 +08:00 committed by GitHub
parent 27185cad7d
commit db23e32554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -100,12 +100,12 @@ fi
#################################################################################################################
#修改MAC
MAC="${TARGET_DIR}/etc/network/interfaces.d/eth0"
if [ -f "$MAC" ]; then
sed -i 's/00:00:23:34:45:66/26:7c:a0:57:91:e8/' "$MAC"
else
echo "$MAC does not exist!"
fi
cat << EOF | tee "${TARGET_DIR}/etc/network/interfaces.d/eth0"
iface eth0 inet dhcp
hwaddress ether $(fw_printenv -n ethaddr || echo 26:7c:a0:57:91:e8)
EOF
################################################################################################################