[rdc] fix the mac address setting on sitecom devices after r20294
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 25 Mar 2010 15:27:30 +0000 (15:27 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 25 Mar 2010 15:27:30 +0000 (15:27 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20427 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index afb3cb49bfa7f88dd7e322ca29b979fdf3a64047..1fe1109981bf5507eeabadfbce9a0f9c8a46d7ba 100644 (file)
@@ -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