#!/bin/sh
if test -e /dev/nand0.root.ubi; then
exit 0
fi
ubiattach -d 0 /dev/nand0.root
if [ $? != 0 ]; then
echo "failed to run ubiattach"
exit 1