mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-21 01:22:45 +07:00
Added set_r1plus_lan_mac.sh to set orangepir1plus's mac address
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user