Author: nbd
Date: 2015-12-19 12:28:42 +0100 (Sat, 19 Dec 2015)
New Revision: 47949

Modified:
   trunk/package/base-files/files/lib/functions/system.sh
Log:
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 <[email protected]>

Modified: trunk/package/base-files/files/lib/functions/system.sh
===================================================================
--- trunk/package/base-files/files/lib/functions/system.sh      2015-12-19 
11:28:36 UTC (rev 47948)
+++ trunk/package/base-files/files/lib/functions/system.sh      2015-12-19 
11:28:42 UTC (rev 47949)
@@ -38,7 +38,7 @@
                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() {
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to