Skip to content

Commit ad7e681

Browse files
feat(star): Also keep 'fsg.mbn'
1 parent 734f567 commit ad7e681

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extractor.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,9 @@ if $(7z l -ba "${romzip}" | grep -q radio.img); then
511511
## Extract 'radio.img.sparse'
512512
"${star}" "${PWD}/radio.img" ${PWD} 2>/dev/null
513513

514-
## Delete everything that's not 'NON-HLOS.bin'
515-
find "${PWD}/" -type f ! -name 'NON-HLOS.bin' -delete
514+
## Delete everything that's not 'NON-HLOS.bin' and 'fsg.mbn'
515+
find "${PWD}/" -type f ! -name 'NON-HLOS.bin' -and ! -name 'fsg.mbn' -delete
516+
mv ${PWD}/fsg.mbn ${outdir}/fsg.mbn
516517

517518
## Move 'NON-HLOS.bin' to 'radio.img.sparse'
518519
mv "${PWD}/NON-HLOS.bin" "${PWD}/radio.img.sparse"

0 commit comments

Comments
 (0)