ramips: fix mac addresses on the DIR-300/600 boards
authorGabor Juhos <juhosg@openwrt.org>
Tue, 6 Dec 2011 20:06:08 +0000 (20:06 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 6 Dec 2011 20:06:08 +0000 (20:06 +0000)
SVN-Revision: 29471

target/linux/ramips/base-files/etc/uci-defaults/network
target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

index fdd29a8d6e4af8543bf4888e14111c023947e492..f78f9bf9dcf0e7bf3fe201c617f655ef53afe46a 100755 (executable)
@@ -61,6 +61,13 @@ ramips_setup_macs()
                wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
                ;;
 
+       dir-300-b1 |\
+       dir-300-b2 |\
+       dir-600-b1)
+               lan_mac=$(ramips_get_mac_binary devdata 16388)
+               wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
+               ;;
+
        nbg-419n)
                 lan_mac=$(ramips_get_mac_binary factory 4)
                 wan_mac=$(ramips_get_mac_binary factory 40)
index 69b9cdfa5930f462a1e341023fad6445f9313a33..4261a6c92b0cc0f05c4ccdfc58ca4d03e1bd5501 100644 (file)
@@ -13,6 +13,12 @@ preinit_set_mac_address() {
                mac=$(maccalc or "$mac" "02:00:00:00:00:00")
                ifconfig eth0 hw ether $mac 2>/dev/null
                ;;
+       dir-300-b1 |\
+       dir-300-b2 |\
+       dir-600-b1)
+                mac=$(ramips_get_mac_binary devdata 16388)
+                ifconfig eth0 hw ether $mac 2>/dev/null
+                ;;
        hw550-3g |\
        nbg-419n)
                mac=$(ramips_get_mac_binary factory 40)