mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 02:48:26 +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:
parent
b759850150
commit
668888c026
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user