odroidc1: set fixed mac address at first boot
This commit is contained in:
parent
307c1daaa1
commit
abd3b20696
@ -120,6 +120,12 @@ case "$1" in
|
||||
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
||||
systemctl restart systemd-networkd
|
||||
;;
|
||||
odroidc1)
|
||||
if [[ -f /boot/boot.ini ]]; then
|
||||
get_random_mac
|
||||
sed -i '/setenv rootfstype "ext4"/a setenv ethaddr "'$MACADDR'"' /boot/boot.ini
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
||||
esac
|
||||
|
||||
Loading…
Reference in New Issue
Block a user