diff --git a/.gitignore b/.gitignore index 58b9f39..2b18b1e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ images/* imagestore/app/*.app imagestore/vhd/*.vhd +imagestore/misc/ICF1 +imagestore/misc/*.zip customcharts/* .config \ No newline at end of file diff --git a/imagestore/misc/README.md b/imagestore/misc/README.md new file mode 100644 index 0000000..6577320 --- /dev/null +++ b/imagestore/misc/README.md @@ -0,0 +1 @@ +The script will place various dependencies here \ No newline at end of file diff --git a/init.sh b/init.sh index 7b66527..5cb8c88 100755 --- a/init.sh +++ b/init.sh @@ -46,9 +46,9 @@ get_required_app () { import_from_ins () { result=$(blkid | grep SEGA_INS | head -n 1 | cut -d: -f1 ) if [ -n "${result:-}" ]; then - echo "Checking SEGA_INS for SDFE .app files..." udisksctl mount --block-device $result mount_point=$(findmnt -n -o TARGET $result) + echo "Checking SEGA_INS for SDFE .app files..." for file in $mount_point/SDFE*.app; do basename=$(basename $file) if [ -f "imagestore/app/$basename" ]; then @@ -58,6 +58,19 @@ import_from_ins () { pv $file > imagestore/app/$basename fi done + echo "Checking SEGA_INS for .icf files..." + for file in $mount_point/*.icf; do + basename=$(basename $file) + echo "$basename: Adding file." + pv $file > imagestore/misc/ICF1 + done + echo "Checking SEGA_INS for segatools.zip..." + for file in $mount_point/segatools.zip; do + basename=$(basename $file) + echo "$basename: Adding file." + pv $file > imagestore/misc/segatools.zip + done + udisksctl unmount --block-device $result else echo "SEGA_INS not found, skipping."