Added set_r1plus_lan_mac.sh to set orangepir1plus's mac address

This commit is contained in:
leeboby
2020-12-22 16:40:48 +08:00
parent a8c4e4cadb
commit 9ef6aa410d
3 changed files with 57 additions and 1 deletions

View File

@@ -245,6 +245,9 @@ family_tweaks()
if [[ $BOARD == orangepir1plus ]]; then
# execute specific tweaks function if present
[[ $(type -t family_tweaks_s) == function ]] && family_tweaks_s
# rename USB based network to lan0
mkdir -p $SDCARD/etc/udev/rules.d/
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8152", KERNEL=="eth1", NAME="lan0"' > $SDCARD/etc/udev/rules.d/70-rename-lan.rules