This commit is contained in:
gutosie
2019-02-21 21:44:01 +01:00
committed by GitHub
parent 3e22720caa
commit f08163874f

View File

@@ -19,7 +19,11 @@ TARGET=Flash
if [ -f $IMAGEBOOT ]; then
TARGET=`cat $IMAGEBOOT`
fi
$IMAGE/$TARGET
if [ $TARGET = "Flash" ]; then
ln -sfn /sbin/init.sysvinit /sbin/init
else
if [ -e $IMAGE/$TARGET/.control_ok ]; then
echo "No Error - Booting image normal ... "; sleep 2
@@ -45,7 +49,6 @@ else
dd if=/media/neoboot/ImagesUpload/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p6
fi
fi
fi
echo "Wrong kernel. Press number 3" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
@@ -56,4 +59,5 @@ else
fi
fi
fi
fi
return 1