From 55d19ff010b1506a820612ab4f5b1ed8d71f0ff4 Mon Sep 17 00:00:00 2001 From: gutosie Date: Fri, 31 Dec 2021 12:32:13 +0200 Subject: [PATCH] Update vu_dev_mtd1.sh --- NeoBoot/tmpfiles/target/vu_dev_mtd1.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NeoBoot/tmpfiles/target/vu_dev_mtd1.sh b/NeoBoot/tmpfiles/target/vu_dev_mtd1.sh index b99c14b..7d8704e 100644 --- a/NeoBoot/tmpfiles/target/vu_dev_mtd1.sh +++ b/NeoBoot/tmpfiles/target/vu_dev_mtd1.sh @@ -33,7 +33,7 @@ NandWrite=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/nandwrite if [ -f /tmp/check_nandwrite ]; then CHECK_NANDWRITE=$( cat /tmp/check_nandwrite) else - CHECK_NANDWRITE=" " + CHECK_NANDWRITE=error fi if [ -f $NEOBOOTMOUNT$IMAGENEXTBOOT ]; then @@ -50,9 +50,9 @@ if [ $VUMODEL = "bm750" ] || [ $BOXHOSTNAME = "vuduo" ] || [ $BOXHOSTNAME = "vus [ $PL ] && echo "Kasowanie kernel z /dev/mtd1..." || echo "Erase kernel from /dev/mtd1" sleep 2 cp -f $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz /tmp/vmlinux.gz - [ $PL ] && echo "Wgrywanie kernel do /dev/mtd1..." || echo "Writing kernel to from /dev/mtd1" + [ $PL ] && echo "Wgrywanie kernel do /dev/mtd1..." || echo "Writing kernel to /dev/mtd1" sleep 2 - if [ -e /tmp/check_nandwrite ] || [ $CHECK_NANDWRITE = "nandwrite" ] ; then + if [ $CHECK_NANDWRITE = "nandwrite" ] ; then set -e if [ "x$D" == "x" ]; then if [ -f /tmp/vmlinux.gz ] ; then @@ -93,7 +93,7 @@ if [ $VUMODEL = "bm750" ] || [ $BOXHOSTNAME = "vuduo" ] || [ $BOXHOSTNAME = "vus [ $PL ] && echo "Wgrywanie kernel do /dev/mtd1... " || echo "Writing kernel to from /dev/mtd1 " sleep 2 - if [ -e /tmp/check_nandwrite ] || [ $CHECK_NANDWRITE = "nandwrite" ] ; then + if [ $CHECK_NANDWRITE = "nandwrite" ] ; then echo "writing kernel flash - BOOT IMAGE " set -e if [ "x$D" == "x" ]; then @@ -127,7 +127,7 @@ if [ $VUMODEL = "bm750" ] || [ $BOXHOSTNAME = "vuduo" ] || [ $BOXHOSTNAME = "vus cp -f $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz /tmp/vmlinux.gz [ $PL ] && echo "Zapis kernel do /dev/mtd1... " || echo "Writing kernel to from /dev/mtd1 " sleep 2 - if [ -e /tmp/check_nandwrite ] || [ $CHECK_NANDWRITE = "nandwrite" ] ; then + if [ $CHECK_NANDWRITE = "nandwrite" ] ; then echo "writing kernel flash - IMAGE BOOT " set -e if [ "x$D" == "x" ]; then