Skip to content

Commit

Permalink
Update BPI-R2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Apr 12, 2020
1 parent 1b9de2a commit e1ff515
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 47 deletions.
41 changes: 0 additions & 41 deletions root/target/linux/mediatek/base-files/etc/board.d/02_network

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mediatek_setup_macs()

case $board in
unielec,u7623-02-emmc-512m)
ucidef_set_interface_macaddr "wan" "$(cat /sys/class/net/wan/address)"
ucidef_set_interface_macaddr "lan" "$(cat /sys/class/net/lan/address)"
;;
esac
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ preinit_set_mac_address() {
rm -rf /tmp/recovery
fi

ip link set dev wan address $mac 2> /dev/null
ip link set dev lan address $mac 2> /dev/null

mac=$(macaddr_add $mac 1)

ip link set dev lan0 address $mac 2>/dev/null
ip link set dev lan1 address $mac 2>/dev/null
ip link set dev lan2 address $mac 2>/dev/null
ip link set dev lan3 address $mac 2>/dev/null
ip link set dev wan1 address $mac 2>/dev/null
ip link set dev wan2 address $mac 2>/dev/null
ip link set dev wan3 address $mac 2>/dev/null
ip link set dev wan4 address $mac 2>/dev/null
;;
esac
}
Expand Down

0 comments on commit e1ff515

Please sign in to comment.