diff --git a/NeoBoot/tmpfiles/target/vu_dev_mtd2.sh b/NeoBoot/tmpfiles/target/vu_dev_mtd2.sh index 2de7aae..9df45bc 100644 --- a/NeoBoot/tmpfiles/target/vu_dev_mtd2.sh +++ b/NeoBoot/tmpfiles/target/vu_dev_mtd2.sh @@ -53,7 +53,7 @@ if [ $BOXHOSTNAME = "vusolo2" ] || [ $BOXHOSTNAME = "vuduo2" ] || [ $BOXHOSTNAM cp -f $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz /tmp/vmlinux.gz [ $PL ] && echo "Wgrywanie kernel do /dev/mtd2..." || echo "Writing kernel to from /dev/mtd2" sleep 2 - if [ $CHECK_NANDWRITE = "nandwrite" ] ; then + if [ -e /tmp/check_nandwrite ] || [ $CHECK_NANDWRITE = "nandwrite" ] ; then set -e if [ "x$D" == "x" ]; then if [ -f /tmp/vmlinux.gz ] ; then @@ -94,7 +94,7 @@ if [ $BOXHOSTNAME = "vusolo2" ] || [ $BOXHOSTNAME = "vuduo2" ] || [ $BOXHOSTNAM [ $PL ] && echo "Wgrywanie kernel do /dev/mtd2... " || echo "Writing kernel to from /dev/mtd2 " sleep 2 - if [ $CHECK_NANDWRITE = "nandwrite" ] ; then + if [ -e /tmp/check_nandwrite ] || [ $CHECK_NANDWRITE = "nandwrite" ] ; then echo "writing kernel flash - BOOT IMAGE " set -e if [ "x$D" == "x" ]; then @@ -128,7 +128,7 @@ if [ $BOXHOSTNAME = "vusolo2" ] || [ $BOXHOSTNAME = "vuduo2" ] || [ $BOXHOSTNAM cp -f $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz /tmp/vmlinux.gz [ $PL ] && echo "Zapis kernel do /dev/mtd2... " || echo "Writing kernel to from /dev/mtd2 " sleep 2 - if [ $CHECK_NANDWRITE = "nandwrite" ] ; then + if [ -e /tmp/check_nandwrite ] || [ $CHECK_NANDWRITE = "nandwrite" ] ; then echo "writing kernel flash - IMAGE BOOT " set -e if [ "x$D" == "x" ]; then