#!/bin/bash
if [ -e /mnt/onboard/fwo_rootfs.img ]; then
	killall nickel
	cd /mnt
	mkdir kindle
	mount -o loop onboard/fwo_rootfs.img kindle/
	mount -t proc proc kindle/proc/
	mount -o bind /mnt/onboard kindle/mnt/us
	mount -t sysfs sys kindle/sys/
	mount -o bind /dev kindle/dev/
	mount -t devpts pts kindle/dev/pts/
	insmod onboard/board_id.ko
	chroot kindle/ /bin/bash
fi

#Board Id: 00A15011241414IF
#S/N: B024150224420FW8
