23 lines
817 B
Bash
Executable file
23 lines
817 B
Bash
Executable file
mkdir sections
|
|
|
|
# Section 4456808
|
|
echo "Extracting 4456808"
|
|
mkdir sections/4456808
|
|
dd if=X570PG45.60 skip=4456808 bs=1 count=15525 of=sections/4456808/image.lzma
|
|
unlzma sections/4456808/image.lzma
|
|
dd if=sections/4456808/image skip=4 bs=1 count=12196 of=sections/4456808/4.jpeg
|
|
dd if=sections/4456808/image skip=12204 bs=1 count=5601 of=sections/4456808/12204.jpeg
|
|
|
|
# Section 4591952
|
|
echo "Extracting 4591952"
|
|
mkdir sections/4591952
|
|
dd if=X570PG45.60 skip=4591952 bs=1 count=41951 of=sections/4591952/image.lzma
|
|
unlzma sections/4591952/image.lzma
|
|
dd if=sections/4591952/image skip=204 bs=1 count=2020 of=sections/4591952/204.bin
|
|
|
|
|
|
# Section 23732584
|
|
echo "Extracting 23732584"
|
|
mkdir sections/23732584
|
|
dd if=X570PG45.60 skip=23732584 bs=1 count=15525 of=sections/23732584/image.lzma
|
|
unlzma sections/23732584/image.lzma
|