Skip to content

Instantly share code, notes, and snippets.

@javacruft
javacruft / omap4-netboot-mkcard.sh
Created September 9, 2011 08:23
omap4 netboot SD card creation script
#!/bin/bash
set -e
if [ ! "$1" = "/dev/sda" ] ; then
unset LANG
DRIVE=$1
if [ -b "$DRIVE" ] ; then
dd if=/dev/zero of=$DRIVE bs=1024 count=1024
SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`