#!/bin/sh

PATH=/env/bin
export PATH

. /env/config
addpart /dev/nor0 $mtdparts

echo
echo -n "Hit any key to stop autoboot: "
timeout -a $autoboot_timeout
if [ $? != 0 ]; then
	echo
	echo "Type update_kernel [<imagename>] to update kernel into flash."
	echo "Type update_system [<imagename>] to update rootfs into flash."
	echo "Type update_application [<imagename>] to update applications into flash."
	echo "Type update_persistent [<imagename>] to update persistent into flash."
	echo "Type update_bareboxenv [<imagename>] to update bareboxenv into flash (use with care!)."
	echo "Type reset_ageing to initialize the ageing partittion (use with care!)."
	echo
	exit
fi

boot
