aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-03-25 15:27:30 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-03-25 15:27:30 +0000
commit1bcb705a6d722fb9eadd92055d406a520b75d329 (patch)
tree6e419ad0689d71b2818aea407c5451505e1a83d7 /target/linux
parenteed13e56bee4b1c9091fb25328c757554eb39e88 (diff)
downloadupstream-1bcb705a6d722fb9eadd92055d406a520b75d329.tar.gz
upstream-1bcb705a6d722fb9eadd92055d406a520b75d329.tar.bz2
upstream-1bcb705a6d722fb9eadd92055d406a520b75d329.zip
[rdc] fix the mac address setting on sitecom devices after r20294
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20427 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc2
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