diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-03-25 15:27:30 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-03-25 15:27:30 +0000 |
commit | 61326faa6035870a8db702dcf7b6e83cc5676f47 (patch) | |
tree | f84ef1c8b274c72b66525379b9dd82a6600a8d8e | |
parent | 8805ead76cf8283dd67af80e638f4873ea9794fd (diff) | |
download | upstream-61326faa6035870a8db702dcf7b6e83cc5676f47.tar.gz upstream-61326faa6035870a8db702dcf7b6e83cc5676f47.tar.bz2 upstream-61326faa6035870a8db702dcf7b6e83cc5676f47.zip |
fix the mac address setting on sitecom devices after r20294
SVN-Revision: 20427
-rw-r--r-- | target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc | 2 |
1 files changed, 1 insertions, 1 deletions
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 afb3cb49bf..1fe1109981 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 |