0057-ramips-set-correct-LAN-WAN-MAC-addresses-on-DIR-860L-B1.patch 846 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 a78912dbc9b5ecdc8a9fb0c583c1e47fdb579015..4e6e507625adf8c706e2311ee121769cadb2aeaf 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. ;;