ramips: update MAC address configuration for Buffalo WSR-1166DHP
Convert MAC address and label_mac configuration of Buffalo
WSR-1166DHP to use the generic function of OpenWrt.
Apply commit 770cfe9 for WCR-1166DS to WSR-1166DHP too.
Tested on the device and MAC address is kept before and after this
change.
Signed-off-by: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
			
			
This commit is contained in:
		| @@ -147,9 +147,9 @@ ramips_setup_macs() | |||||||
| 		lan_mac=$label_mac | 		lan_mac=$label_mac | ||||||
| 		;; | 		;; | ||||||
| 	buffalo,wsr-1166dhp) | 	buffalo,wsr-1166dhp) | ||||||
| 		local index="$(find_mtd_index "board_data")" | 		wan_mac=$(mtd_get_mac_ascii board_data "mac") | ||||||
| 		wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)" |  | ||||||
| 		lan_mac=$wan_mac | 		lan_mac=$wan_mac | ||||||
|  | 		label_mac=$wan_mac | ||||||
| 		;; | 		;; | ||||||
| 	dlink,dir-860l-b1) | 	dlink,dir-860l-b1) | ||||||
| 		lan_mac=$(mtd_get_mac_ascii factory lanmac) | 		lan_mac=$(mtd_get_mac_ascii factory lanmac) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kazuhiro Ito
					Kazuhiro Ito