fix extract_bb

This commit is contained in:
vvb2060 2019-02-11 04:12:46 +08:00 committed by John Wu
parent 992a9ea2f9
commit e05cdc83f3

View File

@ -4,7 +4,7 @@ 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
"$BBBIN" >/dev/null || dd if="$0" of="$BBBIN" bs=1024 skip=1 count=$X86_CNT
}
setup_bb() {
BBDIR=$TMPDIR/bin