0057-ramips-set-correct-LAN-WAN-MAC-addresses-on-DIR-860L-B1.patch 780 B

12345678910111213141516171819202122
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Thu, 30 Jun 2016 16:16:30 +0200
  3. Subject: ramips: set correct LAN/WAN MAC addresses on DIR-860L B1
  4. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  5. diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
  6. index a78912d..4e6e507 100755
  7. --- a/target/linux/ramips/base-files/etc/board.d/02_network
  8. +++ b/target/linux/ramips/base-files/etc/board.d/02_network
  9. @@ -346,6 +346,11 @@ ramips_setup_macs()
  10. wan_mac=$(mtd_get_mac_ascii nvram wanmac)
  11. ;;
  12. + dir-860l-b1)
  13. + lan_mac=$(mtd_get_mac_ascii factory lanmac)
  14. + wan_mac=$(mtd_get_mac_ascii factory wanmac)
  15. + ;;
  16. +
  17. e1700)
  18. wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
  19. ;;