ifconfig eth0 down
ifconfig eth0 hw ether 1a:f4:a0:7b:31:6f
ifconfig eth0 up
修改后为:
root@Khadas:~# cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#/boot/hdmi.sh &
# Add write right for fw_setenv
chmod 666 /dev/env
# Setup LED: breathing if bootup completed
echo breathe > /sys/class/leds/red/trigger
ifconfig eth0 down
ifconfig eth0 hw ether 1a:f4:a0:7b:31:6f
ifconfig eth0 up
exit 0