mirror of
				https://mojerepo.cf/NeoBoot/NeoBoot-9.git
				synced 2025-10-31 00:45:47 +01:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -31,30 +31,25 @@ else | |||||||
|             fi |             fi | ||||||
| 	fi       | 	fi       | ||||||
|      |      | ||||||
|      |  | ||||||
| 	LIBDIR=/lib/modules/`uname -r` | 	LIBDIR=/lib/modules/`uname -r` | ||||||
| 	if [ ! -d $LIBDIR ]; then | 	if [ ! -d $LIBDIR ]; then | ||||||
| 		LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1` | 		LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1` | ||||||
| 	fi | 	fi | ||||||
| 	echo "Mount kernel filesystems ..."	 | 	echo "Mount kernel filesystems ..."	 | ||||||
| 	if [ `mount | grep /proc | wc -l` -lt 1 ]; then	 | 	if [ `mount | grep /proc | wc -l` -lt 1 ]; then	 | ||||||
| 	        /bin/mount -a        	              | 	        /bin/mount -a -t media         	              | ||||||
| 		/bin/mount -t proc proc /proc > /dev/null 2>&1 | 		/bin/mount -t proc proc /proc > /dev/null 2>&1 | ||||||
| 		/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1 | 		/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1 | ||||||
| 		/sbin/depmod -Ae > /dev/null 2>&1                  | 		/sbin/depmod -Ae > /dev/null 2>&1                  | ||||||
| 	fi 	 | 	fi 	 | ||||||
|  |  | ||||||
| 	sleep 5 | 	sleep 1 | ||||||
|  |  | ||||||
| 	echo "NeoBoot is starting mdev and mout HDD USB ..." | 	echo "NeoBoot is starting mdev and mout HDD USB ..." | ||||||
| 	sleep 1 |  | ||||||
| 	echo "/sbin/mdev" > /proc/sys/kernel/hotplug | 	echo "/sbin/mdev" > /proc/sys/kernel/hotplug | ||||||
| 	/etc/init.d/mdev > /dev/null 2>&1 | 	/etc/init.d/mdev > /dev/null 2>&1 | ||||||
| 	 | 	 | ||||||
|  | 	sleep 2 | ||||||
| ############..>>>>>>>> |  | ||||||
| 	 |  | ||||||
| 	sleep 5 |  | ||||||
| 	mnttest="nouuid" | 	mnttest="nouuid" | ||||||
| 	if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install  ]; then | 	if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install  ]; then | ||||||
|         	orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1` |         	orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1` | ||||||
| @@ -112,52 +107,8 @@ else | |||||||
|  |  | ||||||
| 	fi | 	fi | ||||||
|  |  | ||||||
| 	MODPROBE=/sbin/modprobe |  | ||||||
|  |  | ||||||
| 	echo "Load video and frame buffer modules ..." |  | ||||||
|         #modprobe dvb |  | ||||||
|  |  | ||||||
| 	echo "NeoBoot is loading modules" |  | ||||||
| 	for mod in dvb; do |  | ||||||
| 		$MODPROBE $mod |  | ||||||
| 	done |  | ||||||
| 	 |  | ||||||
| 	# Hack for loading modules which are not loaded on diffrent kernel images |  | ||||||
| 	/etc/init.d/modutils.sh |  | ||||||
| 	# |  | ||||||
|  |  | ||||||
| 	echo "Set BOOTLOGO ..." |  | ||||||
|         sleep 1	 |  | ||||||
|                           |  | ||||||
| 	cat /etc/videomode > /proc/stb/video/videomode |  | ||||||
|  |  | ||||||
| 	#we must wait until udev has created the video device |  | ||||||
| 	( |  | ||||||
| 	if [ -d /proc/stb ]; then |  | ||||||
| 		while true; do |  | ||||||
| 			if [ -e /dev/dvb/adapter0/video0 ]; then |  | ||||||
| 				break; |  | ||||||
| 			fi; |  | ||||||
| 		done; |  | ||||||
| 	fi; |  | ||||||
| 	[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi; |  | ||||||
| 	) & |  | ||||||
|            |  | ||||||
|         /etc/init.d/bootlogo > /dev/null 2>&1 |  | ||||||
|          |  | ||||||
|         sleep 2 |  | ||||||
|         echo "Driverload end" |  | ||||||
|  |  | ||||||
| 	if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then |  | ||||||
| 		/sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1 |  | ||||||
| 	fi |  | ||||||
|  |  | ||||||
| 	if [ -e /tmp/init_reboot ]; then |  | ||||||
| 		  break; |  | ||||||
| 	fi |  | ||||||
| 	 |  | ||||||
|         UPLOAD=ImagesUpload |         UPLOAD=ImagesUpload | ||||||
|         mount /dev/sda1 /media/hdd | #        mount /dev/sda1 /media/hdd | ||||||
| 	if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then | 	if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then | ||||||
|                 echo "Error mounting, Return to image Flash..." |                 echo "Error mounting, Return to image Flash..." | ||||||
|                 sleep 2 |                 sleep 2 | ||||||
| @@ -168,12 +119,62 @@ else | |||||||
|                 reboot -f |                 reboot -f | ||||||
| 	fi | 	fi | ||||||
|  |  | ||||||
|  |  | ||||||
| 	TARGET=Flash | 	TARGET=Flash | ||||||
| 	if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ]; then | 	if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ]; then | ||||||
| 	  TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot` | 	  TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot` | ||||||
| 	fi                                                                                                | 	fi                                                                                                | ||||||
|  |  | ||||||
|  |         HOSTNAME=`cat /etc/hostname` | ||||||
|  | 	if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/boot/zImage.$HOSTNAME ]; then | ||||||
|  |  | ||||||
|  |  | ||||||
|  |             echo "Image launched on a base kernel flash. "  > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/kernel_flash | ||||||
|  |              | ||||||
|  | 	    MODPROBE=/sbin/modprobe | ||||||
|  |  | ||||||
|  | 	    echo "Load video and frame buffer modules ..." | ||||||
|  |             #modprobe dvb | ||||||
|  |  | ||||||
|  | 	    echo "NeoBoot is loading modules" | ||||||
|  | 	    for mod in dvb; do | ||||||
|  | 		    $MODPROBE $mod | ||||||
|  | 	    done | ||||||
|  | 	 | ||||||
|  | 	    # Hack for loading modules which are not loaded on diffrent kernel images | ||||||
|  | 	    /etc/init.d/modutils.sh | ||||||
|  | 	    # | ||||||
|  |  | ||||||
|  | 	    echo "Set BOOTLOGO ..." | ||||||
|  |             sleep 1	 | ||||||
|  |                           | ||||||
|  | 	    cat /etc/videomode > /proc/stb/video/videomode | ||||||
|  |  | ||||||
|  |     	    #we must wait until udev has created the video device | ||||||
|  | 	    ( | ||||||
|  | 	    if [ -d /proc/stb ]; then | ||||||
|  | 		    while true; do | ||||||
|  | 			    if [ -e /dev/dvb/adapter0/video0 ]; then | ||||||
|  | 				    break; | ||||||
|  | 			    fi; | ||||||
|  | 		    done; | ||||||
|  | 	    fi; | ||||||
|  | 	    [ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi; | ||||||
|  | 	    ) & | ||||||
|  |            | ||||||
|  |             /etc/init.d/bootlogo > /dev/null 2>&1 | ||||||
|  |          | ||||||
|  |             sleep 2 | ||||||
|  |             echo "Driverload end" | ||||||
|  |  | ||||||
|  | 	    if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then | ||||||
|  | 		    /sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1 | ||||||
|  | 	    fi | ||||||
|  | 	fi | ||||||
|  |  | ||||||
|  | 	if [ -e /tmp/init_reboot ]; then | ||||||
|  | 		  break; | ||||||
|  | 	fi | ||||||
|  | 	    	         | ||||||
| 	if [ $TARGET = "Flash" ]; then | 	if [ $TARGET = "Flash" ]; then | ||||||
| 		echo "NEOBOOT is booting image from " $TARGET | 		echo "NEOBOOT is booting image from " $TARGET | ||||||
| 		/bin/umount /media/usb > /dev/null 2>&1 | 		/bin/umount /media/usb > /dev/null 2>&1 | ||||||
|   | |||||||
| @@ -119,50 +119,55 @@ else | |||||||
| 		        echo "NEOBOOT mount by UUID" | 		        echo "NEOBOOT mount by UUID" | ||||||
| 	fi | 	fi | ||||||
| ###>>>>>>>>>>>>>>>>>  | ###>>>>>>>>>>>>>>>>>  | ||||||
|  |         HOSTNAME=`cat /etc/hostname` | ||||||
|  | 	if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/boot/$HOSTNAME.vmlinux.gz ]; then | ||||||
|  |  | ||||||
| 	MODPROBE=/sbin/modprobe |             echo "Image launched on a base kernel flash. "  > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/kernel_flash | ||||||
|  |  | ||||||
| 	echo "Load video and frame buffer modules ..." | 	    MODPROBE=/sbin/modprobe | ||||||
|         modprobe dvb |  | ||||||
|  |  | ||||||
| 	echo "NeoBoot is loading modules" | 	    echo "Load video and frame buffer modules ..." | ||||||
| 	for mod in dvb; do |             modprobe dvb | ||||||
| 		$MODPROBE $mod |  | ||||||
| 	done |  | ||||||
|  |  | ||||||
| 	# Hack for loading modules which are not loaded on diffrent kernel images | 	    echo "NeoBoot is loading modules" | ||||||
| 	/etc/init.d/modutils.sh | 	    for mod in dvb; do | ||||||
| 	# | 		    $MODPROBE $mod | ||||||
|  | 	    done | ||||||
| 	 | 	 | ||||||
| 	echo "Set BOOTLOGO ..." | 	    # Hack for loading modules which are not loaded on diffrent kernel images | ||||||
|         sleep 1	 | 	    /etc/init.d/modutils.sh | ||||||
|  | 	    # | ||||||
|  |  | ||||||
| 	cat /etc/videomode > /proc/stb/video/videomode | 	    echo "Set BOOTLOGO ..." | ||||||
|  |             sleep 1	 | ||||||
|                           |                           | ||||||
| 	#we must wait until udev has created the video device | 	    cat /etc/videomode > /proc/stb/video/videomode | ||||||
| 	( |  | ||||||
| 	if [ -d /proc/stb ]; then |  | ||||||
| 		while true; do |  | ||||||
| 			if [ -e /dev/dvb/adapter0/video0 ]; then |  | ||||||
| 				break; |  | ||||||
| 			fi; |  | ||||||
| 		done; |  | ||||||
| 	fi; |  | ||||||
| 	[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi; |  | ||||||
| 	) & |  | ||||||
|  |  | ||||||
|         /etc/init.d/bootlogo > /dev/null 2>&1 | 	    #we must wait until udev has created the video device | ||||||
|  | 	    ( | ||||||
|  | 	    if [ -d /proc/stb ]; then | ||||||
|  | 		    while true; do | ||||||
|  | 			    if [ -e /dev/dvb/adapter0/video0 ]; then | ||||||
|  | 				    break; | ||||||
|  | 			    fi; | ||||||
|  | 		    done; | ||||||
|  | 	    fi; | ||||||
|  | 	    [ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi; | ||||||
|  | 	    ) & | ||||||
|            |            | ||||||
|         sleep 2 |             /etc/init.d/bootlogo > /dev/null 2>&1 | ||||||
|         echo "Driverload end" |          | ||||||
|  |             sleep 2 | ||||||
|  |             echo "Driverload end" | ||||||
|  |  | ||||||
|  | 	    if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then | ||||||
|  | 		    /sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1 | ||||||
|  | 	    fi | ||||||
|  |  | ||||||
|  | 	    /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/fbclear > /dev/null 2>&1 | ||||||
|  |  | ||||||
| 	if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then |  | ||||||
| 		/sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1 |  | ||||||
| 	fi 	 | 	fi 	 | ||||||
|  |  | ||||||
| 	/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/fbclear > /dev/null 2>&1 |  | ||||||
|  |  | ||||||
|  	 |  | ||||||
|         #dodatkowe szukanie neoboota |         #dodatkowe szukanie neoboota | ||||||
|         #mount /dev/sdb1 $NEO > /dev/null 2>&1  # <<< tu mozesz zmienic sdb1 i wpisac Twoje montowanie dysku dla neoboot |         #mount /dev/sdb1 $NEO > /dev/null 2>&1  # <<< tu mozesz zmienic sdb1 i wpisac Twoje montowanie dysku dla neoboot | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user