Commit 1f8df419 authored by topjohnwu's avatar topjohnwu

Extract x86 busybox first

Fix #1600
parent 7ba8202a
...@@ -3,8 +3,8 @@ X86_CNT=__X86_CNT__ ...@@ -3,8 +3,8 @@ X86_CNT=__X86_CNT__
extract_bb() { extract_bb() {
touch "$BBBIN" touch "$BBBIN"
chmod 755 "$BBBIN" chmod 755 "$BBBIN"
dd if="$0" of="$BBBIN" bs=1024 skip=$(($X86_CNT + 1)) dd if="$0" of="$BBBIN" bs=1024 skip=1 count=$X86_CNT
"$BBBIN" >/dev/null || 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() { setup_bb() {
export BBDIR=$TMPDIR/bin export BBDIR=$TMPDIR/bin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment