#!/bin/sh

# Page+OOB specific partitions
addpart /dev/mtd0.raw 2162688@405504(barebox)

if [ -r /barebox.BIP0 ]; then
	dps1_unlock
	erase /dev/mtd0.raw.barebox
	cp -v /barebox.BIPO /dev/mtd0.raw.barebox
	dps1_unlock
fi
