Skip to content

Commit

Permalink
Clear boot areas of SD card
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 committed Apr 6, 2019
1 parent d10564b commit 31a5c84
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mod/install
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ sdprep="$transferpath/sdprep"

chmod +x "$transferpath/sfdisk"

dd if=/dev/zero of=/dev/mmcblk0 bs=1 count=446
dd if=/dev/zero of=/dev/mmcblk0 bs=1K seek=8 count=32
dd if=/dev/zero of=/dev/mmcblk0 bs=1K seek=19096 count=688

echo ""
echo "Partitioning and formatting SD card"
echo ""

Expand All @@ -23,5 +28,4 @@ mkdir -p "$sdprep/$modname/games" "$sdprep/$modname/saves"
sync
umount "$sdprep" && rmdir "$sdprep"

dd if=/dev/zero of=/dev/mmcblk0 bs=1 count=446
echo sdprep | dd of=/dev/mmcblk0

0 comments on commit 31a5c84

Please sign in to comment.