#!/bin/bash patch=$1 device=$2 echo "Patch $patch to $device. Sure?" read sudo dd if=$patch of=$device bs=1 seek=1048576 conv=notrunc sync