update 8.13
This commit is contained in:
		@@ -1,11 +1,9 @@
 | 
			
		||||
#!/bin/sh       
 | 
			
		||||
       
 | 
			
		||||
TARGET=Flash
 | 
			
		||||
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
 | 
			
		||||
IMAGEKATALOG=ImageBoot
 | 
			
		||||
UPLOADKATALOG=ImagesUpload
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
if [ ! -e  $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
 | 
			
		||||
	            mnttest="nouuid"
 | 
			
		||||
	            if [ -e $NEOBOOT/bin/install  ]; then
 | 
			
		||||
@@ -37,7 +35,7 @@ if [ ! -e  $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
 | 
			
		||||
          ln -sfn /sbin/init.sysvinit /sbin/init
 | 
			
		||||
          echo "Flash "  >   $NEODEVICE$IMAGEKATALOG/.neonextboot
 | 
			
		||||
          echo "Error - Back to Flash... "
 | 
			
		||||
          sleep 5; reboot -f
 | 
			
		||||
          sleep 5; #reboot -f
 | 
			
		||||
fi 
 | 
			
		||||
 | 
			
		||||
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
 | 
			
		||||
@@ -50,9 +48,8 @@ if [ $TARGET = "Flash" ]; then
 | 
			
		||||
		/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi > /dev/null 2>&1
 | 
			
		||||
    sleep 3		
 | 
			
		||||
		ln -sfn /sbin/init.sysvinit /sbin/init
 | 
			
		||||
		reboot -f
 | 
			
		||||
		#reboot -f
 | 
			
		||||
else
 | 
			
		||||
 | 
			
		||||
    ######### test boot new imaga>>>>
 | 
			
		||||
    VUMODEL=$( cat /proc/stb/info/vumodel )
 | 
			
		||||
    BOXNAME=$( cat /etc/hostname)
 | 
			
		||||
@@ -61,13 +58,12 @@ else
 | 
			
		||||
    DEVICEBOOT=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
 | 
			
		||||
    if [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_ok ]; then
 | 
			
		||||
        [ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
 | 
			
		||||
                else 
 | 
			
		||||
 | 
			
		||||
                                VUMODEL=`cat /proc/stb/info/vumodel` 
 | 
			
		||||
                                BOXNAME=`cat /etc/hostname` 
 | 
			
		||||
          			if [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image ]; then
 | 
			
		||||
    elif [ -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image ]; then
 | 
			
		||||
        echo "First start image - The first attempt to launch a new image... "; rm -f $DEVICEBOOT$DIRECTORY/$TARGET/.control_boot_new_image 
 | 
			
		||||
    else        
 | 
			
		||||
	      if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/boot/zImage.$BOXNAME ]; then
 | 
			
		||||
            VUMODEL=`cat /proc/stb/info/vumodel` 
 | 
			
		||||
            BOXNAME=`cat /etc/hostname`
 | 
			
		||||
            if [ ! -e $DEVICEBOOT$DIRECTORY/$TARGET/.control_ok ] ; then                                          
 | 
			
		||||
                if [ $BOXNAME = "vuultimo4k" ] || [ $BOXNAME = "vusolo4k" ] || [ $BOXNAME = "vuuno4kse" ] || [ $BOXNAME = "vuuno4k" ]; then                                                         			        
 | 
			
		||||
                    if [ -d /proc/stb ] ; then
 | 
			
		||||
@@ -85,24 +81,24 @@ else
 | 
			
		||||
                        dd if=$DEVICEBOOT$UPLOAD/.kernel/flash-kernel-$VUMODEL.bin of=/dev/mmcblk0p6
 | 
			
		||||
                    fi
 | 
			
		||||
                fi                                            
 | 
			
		||||
            fi
 | 
			
		||||
        fi    
 | 
			
		||||
        echo "Wrong kernel. Press number 3"  > $DEVICEBOOT$UPLOAD/.kernel/used_flash_kernel
 | 
			
		||||
        ln -sfn /sbin/init.sysvinit /sbin/init
 | 
			
		||||
        echo "Flash "  > $DEVICEBOOT$DIRECTORY/.neonextboot
 | 
			
		||||
 			  echo "Error - NeoBoot he can not run it image !!! "
 | 
			
		||||
 			  echo "Restart STB - Back to Flash... "
 | 
			
		||||
                    			sleep 5; reboot -f   
 | 
			
		||||
        /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
 | 
			
		||||
  		  sleep 10; #reboot -f   
 | 
			
		||||
    fi
 | 
			
		||||
          			fi
 | 
			
		||||
                fi
 | 
			
		||||
                ######### test boot new image<<<<<
 | 
			
		||||
 | 
			
		||||
    ######### test boot new image<<<<<
 | 
			
		||||
    if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
 | 
			
		||||
        rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh 
 | 
			
		||||
    fi
 | 
			
		||||
    cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
 | 
			
		||||
 | 
			
		||||
    #mount $NEODEVICE /media/neoboot 
 | 
			
		||||
 | 
			
		||||
    if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
 | 
			
		||||
                                orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
 | 
			
		||||
                                   for item in $orgimag; do
 | 
			
		||||
@@ -127,13 +123,9 @@ else
 | 
			
		||||
                                       fi    
 | 
			
		||||
                                   done                             
 | 
			
		||||
    fi                            
 | 
			
		||||
                            
 | 
			
		||||
    chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh 
 | 
			
		||||
                            #chattr -i $LOCATION$IMAGEBOOT/$TARGET/usr/bin/enigma2_pre_start.sh
 | 
			
		||||
    echo "NeoBOOT created the file mount enigma2_pre_start.sh "
 | 
			
		||||
    sleep 2 
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
fi
 | 
			
		||||
                                   
 | 
			
		||||
exit 0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user