Ethernet MAC address should be passed by u-boot in device tree. In many cases this address is not correct: ethmactool package allows userspace to take care of it. Currently these are possible sources of "real" MAC: - Amlogic: cmdline, eFuse, CPU SN - Rockchip: CPU SN
14 lines
283 B
Desktop File
14 lines
283 B
Desktop File
[Unit]
|
|
Description=Configure eth0 MAC address
|
|
BindsTo=sys-subsystem-net-devices-eth0.device
|
|
After=sys-subsystem-net-devices-eth0.device
|
|
Before=connman.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/usr/bin/ethmactool-config eth0
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|