ramips: fix MAC address setup for Samsung CY-SWR1100
authorSungbo Eo <mans0n@gorani.run>
Wed, 13 Nov 2019 14:22:54 +0000 (23:22 +0900)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 14 Nov 2019 22:24:34 +0000 (23:24 +0100)
Ethernet MAC address setup has been broken since c3e420f28cf1. Restore
original setting.

Fixes: c3e420f28cf1 ("ramips: Add support for D-Link DCH-M225")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
(cherry picked from commit 7231c1edd99217c6baa8d7d5d841d75ad9de26f1)
[backported due to base-files split]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/base-files/etc/board.d/02_network

index dd76dc12a558aa0058c47f46f5ed8964cf416fc1..951eae161829238cce9ffe2b481229c09c45b406 100755 (executable)
@@ -437,13 +437,13 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_binary devdata 7)
                ;;
        cy-swr1100|\
-       dch-m225)
-               lan_mac=$(mtd_get_mac_ascii factory lanmac)
-               ;;
        dir-645)
                lan_mac=$(mtd_get_mac_ascii nvram lanmac)
                wan_mac=$(mtd_get_mac_ascii nvram wanmac)
                ;;
+       dch-m225)
+               lan_mac=$(mtd_get_mac_ascii factory lanmac)
+               ;;
        dir-860l-b1)
                lan_mac=$(mtd_get_mac_ascii factory lanmac)
                wan_mac=$(mtd_get_mac_ascii factory wanmac)