update 2.04

This commit is contained in:
gutosie
2019-02-17 19:13:45 +01:00
committed by GitHub
parent 3ee7f69f78
commit dbba4b3254
2 changed files with 54 additions and 7 deletions

View File

@@ -5,12 +5,16 @@ if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
PL=1
fi
if [ -f /proc/stb/info/vumodel ]; then
VUMODEL=$( cat /proc/stb/info/vumodel )
fi
BOXNAME=$( cat /etc/hostname)
IMAGE=/media/neoboot/ImageBoot
IMAGEBOOT=/media/neoboot/ImageBoot/.neonextboot
NEO=/media/neoboot
NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot
MODPROBE=/sbin/modprobe
BOXNAME=`cat /etc/hostname`
#BOXNAME=`cat /etc/hostname`
FINDBOOT=/media/*/ImageBoot/.neonextboot
CELBOOT=`cat $FINDBOOT`
@@ -105,15 +109,34 @@ else
######### test boot new imaga>>>>
if [ -e $IMAGE/$TARGET/.control_ok ]; then
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
#echo "No Error - Booting image normal... "
sync
else
if [ -e $IMAGE/$TARGET/.control_boot_new_image ]; then
echo "First start image - The first attempt to launch a new image... "; rm -f $IMAGE/$TARGET/.control_boot_new_image
sync
else
if [ ! -e $IMAGE/$TARGET/.control_ok ] ; then
echo " ***** gutosie _(*_*)_ TEST FIRST BOOT IMAGE - rebootbot ***** "
echo "Reinstall kernel -Press number 3" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
if [ ! -e $IMAGE/$TARGET/.control_ok ] ; then
if [ $BOXNAME = "vuultimo4k" ] || [ $BOXNAME = "solo4k" ] || [ $BOXNAME = "uno4kse" ] || [ $BOXNAME = "uno4k" ]; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
dd if=/media/neoboot/ImagesUpload/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p1
fi
elif [ $BOXNAME = "vuzero4k" ] ; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
dd if=/media/neoboot/ImagesUpload/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p4
fi
elif [ $BOXNAME = "vuduo4k" ] ; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
dd if=/media/neoboot/ImagesUpload/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p6
fi
fi
echo "Wrong kernel. Press number 3" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > /media/neoboot/ImageBoot/.neonextboot
sync
echo "Error - NeoBoot he can not run it image !!! "
echo "Restart STB - Back to Flash... "
sleep 8; reboot -f
@@ -167,7 +190,7 @@ else
echo " Back to image Flash... "
rm -f $IMAGEBOOT; touch $IMAGEBOOT; echo "Flash " > $IMAGEBOOT
/usr/bin/showiframe $NEOBOOT/error.mvi > /dev/null 2>&1
sleep 10; exec /sbin/init.sysvinit $1
sync; sleep 10; exec /sbin/init.sysvinit $1
fi
exit 0
fi

View File

@@ -6,10 +6,16 @@ if [ ! -e /media/neoboot/ImageBoot/.neonextboot ]; then
echo "Error - Back to Flash... "
sleep 5; reboot -f
fi
if [ -f /proc/stb/info/vumodel ]; then
VUMODEL=$( cat /proc/stb/info/vumodel )
fi
BOXNAME=$( cat /etc/hostname)
IMAGE=/media/neoboot/ImageBoot
IMAGEBOOT=/media/neoboot/ImageBoot/.neonextboot
TARGET=Flash
if [ -f $IMAGEBOOT ]; then
TARGET=`cat $IMAGEBOOT`
fi
@@ -23,7 +29,25 @@ else
else
if [ ! -e $IMAGE/$TARGET/.control_ok ] ; then
echo " ***** gutosie _(*_*)_ TEST FIRST BOOT IMAGE - rebootbot ***** "
echo "Reinstall kernel -Press number 3" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
if [ $BOXNAME = "vuultimo4k" ] || [ $BOXNAME = "vusolo4k" ] || [ $BOXNAME = "vuuno4kse" ] || [ $BOXNAME = "vuuno4k" ]; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
dd if=/media/neoboot/ImagesUpload/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p1
fi
elif [ $BOXNAME = "vuzero4k" ] ; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
dd if=/media/neoboot/ImagesUpload/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p4
fi
elif [ $BOXNAME = "vuduo4k" ] ; then
if [ -d /proc/stb ] ; then
echo " Install kernel image flash.... " $BOXNAME
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
echo "Flash " > /media/neoboot/ImageBoot/.neonextboot
echo "Error - NeoBoot nie potrafi uruchomic tego image !!! "