Commit e05cdc83 authored by vvb2060's avatar vvb2060 Committed by John Wu

fix extract_bb

parent 992a9ea2
...@@ -4,7 +4,7 @@ extract_bb() { ...@@ -4,7 +4,7 @@ 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=$(($X86_CNT + 1))
"./$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=1 count=$X86_CNT
} }
setup_bb() { setup_bb() {
BBDIR=$TMPDIR/bin 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