Просмотр исходного кода

fix the mac address setting on sitecom devices after r20294

SVN-Revision: 20427
Florian Fainelli 15 лет назад
Родитель
Сommit
61326faa60
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc

+ 1 - 1
target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc

@@ -8,7 +8,7 @@ r6040_module() {
 }
 
 set_ether_mac() {
-	kernel=$(grep magic /proc/mtd | awk -F: '{print $1}')
+	kernel=$(grep firmware /proc/mtd | awk -F: '{print $1}')
 	[ -n $kernel ] && hdr=$(dd if=/dev/$kernel count=4 bs=1 2> /dev/null)
 	[ "$hdr" = "CSYS" ] && config=$(find_mtd_part config)
 	if [ -n "$config" ]; then