From 61326faa6035870a8db702dcf7b6e83cc5676f47 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 25 Mar 2010 15:27:30 +0000 Subject: [PATCH] fix the mac address setting on sitecom devices after r20294 SVN-Revision: 20427 --- target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc b/target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc index afb3cb49bfa7..1fe1109981bf 100644 --- a/target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc +++ b/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 -- 2.30.2