projects
/
openwrt
/
staging
/
chunkeey.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c74a690
)
base-files: cleanup mtd_get_mac_binary hexdump
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 Dec 2015 11:28:42 +0000
(11:28 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 Dec 2015 11:28:42 +0000
(11:28 +0000)
Remove usage of dd, as per request from Yousong Zhou.
<https://lists.openwrt.org/pipermail/openwrt-devel/2015-December/037743.html>
Signed-off-by: Chris R Blake <chrisrblake93@gmail.com>
SVN-Revision: 47949
package/base-files/files/lib/functions/system.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/functions/system.sh
b/package/base-files/files/lib/functions/system.sh
index 03d71277b03713216f22b4ad41f61de6d418ec35..35f6d10fdb2bb93d95e4502d7657fcc1a713e55d 100644
(file)
--- a/
package/base-files/files/lib/functions/system.sh
+++ b/
package/base-files/files/lib/functions/system.sh
@@
-38,7
+38,7
@@
mtd_get_mac_binary() {
return
fi
- dd bs=1 skip=$offset count=6 if=$part 2>/dev/null | hexdump -v -n 6 -e '5/1 "%02x:" 1/1 "%02x"'
+ hexdump -v -n 6 -s $offset -e '5/1 "%02x:" 1/1 "%02x"' $part 2>/dev/null
}
mtd_get_mac_binary_ubi() {