Skip to content

Commit

Permalink
Odroid M1: add a network rule to rename default name
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Jun 25, 2024
1 parent 2937ceb commit 2a2e609
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/boards/odroidm1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,12 @@ function post_family_tweaks__config_odroidm1_fwenv() {
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd1 0x0000 0x20000
FW_ENV_CONFIG

# add a network rule to rename default name
display_alert "Creating network rename rule for Odroid M1"
mkdir -p "${SDCARD}"/etc/udev/rules.d/
cat <<- EOF > "${SDCARD}"/etc/udev/rules.d/70-rename-lan.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", KERNEL=="end*", NAME="eth0"
EOF

}

0 comments on commit 2a2e609

Please sign in to comment.