format.sh (234B)
1 #!/bin/sh 2 3 dd if=/dev/zero of=/dev/sdX bs=1M count=8 4 5 sfdisk /dev/sdX <<EOF 6 label: dos 7 unit: sectors 8 /dev/sdX1: start=8192,type=83,bootable # our linux partition 9 EOF 10 11 dd if=flash-image.bin of=/dev/sdX seek=4096 conv=fdatasync,notrunc