1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 22:53:09 +02:00

[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
This commit is contained in:
florian 2010-03-25 15:27:30 +00:00
parent b759850150
commit 668888c026

View File

@ -8,7 +8,7 @@ r6040_module() {
} }
set_ether_mac() { 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) [ -n $kernel ] && hdr=$(dd if=/dev/$kernel count=4 bs=1 2> /dev/null)
[ "$hdr" = "CSYS" ] && config=$(find_mtd_part config) [ "$hdr" = "CSYS" ] && config=$(find_mtd_part config)
if [ -n "$config" ]; then if [ -n "$config" ]; then