#! /bin/sh  

cp /mnt/sda1/AutoScript/jb_overlay.tgz /tmp
sync
sync 
tar -zxf /tmp/jb_overlay.tgz -C /mnt/ubi_boot 
sync
sync
cp /mnt/sda1/AutoScript/bdpprog /mnt/ubi_boot/
sync
sync
chmod +x /mnt/ubi_boot/bdpprog
sync
sync
touch /mnt/ubi_boot/.nobrick
sync
sync
