From dcc32bd357003f78850ee1a581276d6332e6132b Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 28 Dec 2021 23:02:38 +0200 Subject: [PATCH] Update vu_dev_mtd1.sh --- NeoBoot/tmpfiles/target/vu_dev_mtd1.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NeoBoot/tmpfiles/target/vu_dev_mtd1.sh b/NeoBoot/tmpfiles/target/vu_dev_mtd1.sh index 6a89ff7..ebfb2e2 100644 --- a/NeoBoot/tmpfiles/target/vu_dev_mtd1.sh +++ b/NeoBoot/tmpfiles/target/vu_dev_mtd1.sh @@ -30,7 +30,11 @@ IMAGENEXTBOOT=/ImageBoot/.neonextboot NEOBOOTMOUNT=$( cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location) BOXHOSTNAME=$( cat /etc/hostname) UPLOAD=ImagesUpload -NandWrite=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/nandwrite +if [ -f /usr/sbin/nandwrite ]; then + NandWrite=/usr/sbin/nandwrite +else + NandWrite=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/nandwrite +fi if [ -f $NEOBOOTMOUNT$IMAGENEXTBOOT ]; then TARGET=`cat $NEOBOOTMOUNT$IMAGENEXTBOOT`