#!/bin/sh

. /env/config

echo "get barebox image from tftp server"

tftp ${bareboximage} /${bareboximage}

echo "safe copy barebox to unpartitioned area"

memcpy -s /${bareboximage}  -d /dev/self0 1024 1024 || exit 1

echo "barebox update completed ..."
