diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-12-19 11:28:42 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-12-19 11:28:42 +0000 |
commit | aedfbb331b83eea6f0f8bad4b980c75bbbda5615 (patch) | |
tree | 99989d9e1bb630037c2572559fe23105e9a997f9 /package | |
parent | dda0dc3943c67133a9dd9ae7044520a8c37c9961 (diff) | |
download | master-187ad058-aedfbb331b83eea6f0f8bad4b980c75bbbda5615.tar.gz master-187ad058-aedfbb331b83eea6f0f8bad4b980c75bbbda5615.tar.bz2 master-187ad058-aedfbb331b83eea6f0f8bad4b980c75bbbda5615.zip |
base-files: cleanup mtd_get_mac_binary hexdump
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47949 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/base-files/files/lib/functions/system.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh index 03d71277b0..35f6d10fdb 100644 --- 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() { |