From: Felix Fietkau Date: Sat, 19 Dec 2015 11:28:42 +0000 (+0000) Subject: base-files: cleanup mtd_get_mac_binary hexdump X-Git-Tag: reboot~1124 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0936f5b0e0f30c8f07f78cb8e7f184f9d1bde86a;p=oweals%2Fopenwrt.git base-files: cleanup mtd_get_mac_binary hexdump Remove usage of dd, as per request from Yousong Zhou. Signed-off-by: Chris R Blake SVN-Revision: 47949 --- 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() {