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 17, 2024
1 parent c14e166 commit 98b7d12
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/boards/odroidm1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,14 @@ function post_family_tweaks__config_odroidm1_fwenv() {
/dev/mtd1 0x0000 0x20000
FW_ENV_CONFIG
}

function post_family_tweaks_bsp__add_network_rule_odroidm1() {

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

}

0 comments on commit 98b7d12

Please sign in to comment.