From 1f8df419c43aa41009679cf1437acd5e337af81f Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 16 Jul 2019 01:16:29 -0700 Subject: [PATCH] Extract x86 busybox first Fix #1600 --- scripts/update_binary.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update_binary.sh b/scripts/update_binary.sh index 91d4c17b8..26bc8b12e 100644 --- a/scripts/update_binary.sh +++ b/scripts/update_binary.sh @@ -3,8 +3,8 @@ X86_CNT=__X86_CNT__ extract_bb() { touch "$BBBIN" chmod 755 "$BBBIN" - dd if="$0" of="$BBBIN" bs=1024 skip=$(($X86_CNT + 1)) - "$BBBIN" >/dev/null || dd if="$0" of="$BBBIN" bs=1024 skip=1 count=$X86_CNT + dd if="$0" of="$BBBIN" bs=1024 skip=1 count=$X86_CNT + "$BBBIN" >/dev/null || dd if="$0" of="$BBBIN" bs=1024 skip=$(($X86_CNT + 1)) } setup_bb() { export BBDIR=$TMPDIR/bin