9
0
Fork 0
barebox/arch/arm/boards/sysmobts/defaultenv-sysmobts/bin/prepare-ubi

14 lines
163 B
Bash

#!/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
fi
exit 0