mirror of
				https://mojerepo.cf/NeoBoot/NeoBoot-9.git
				synced 2025-10-31 07:05: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,6 +107,29 @@ else | |||||||
|  |  | ||||||
| 	fi | 	fi | ||||||
|  |  | ||||||
|  |         UPLOAD=ImagesUpload | ||||||
|  | #        mount /dev/sda1 /media/hdd | ||||||
|  | 	if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then | ||||||
|  |                 echo "Error mounting, Return to image Flash..." | ||||||
|  |                 sleep 2 | ||||||
|  |                 ln -sfn /sbin/init.sysvinit /sbin/init | ||||||
|  |                 echo "Flash "  > $NEODEVICE$IMAGEKATALOG/.neonextboot  | ||||||
|  |                 echo "Reinstall kernel -Press number 3"  > $NEODEVICE$UPLOAD/.kernel/used_flash_kernel | ||||||
|  |                 echo " Sending all processes the TERM- KILL signal..." | ||||||
|  |                 reboot -f | ||||||
|  | 	fi | ||||||
|  |  | ||||||
|  | 	TARGET=Flash | ||||||
|  | 	if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ]; then | ||||||
|  | 	  TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot` | ||||||
|  | 	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 | 	    MODPROBE=/sbin/modprobe | ||||||
|  |  | ||||||
| 	    echo "Load video and frame buffer modules ..." | 	    echo "Load video and frame buffer modules ..." | ||||||
| @@ -151,29 +169,12 @@ else | |||||||
| 	    if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then | 	    if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then | ||||||
| 		    /sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1 | 		    /sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1 | ||||||
| 	    fi | 	    fi | ||||||
|  | 	fi | ||||||
|  |  | ||||||
| 	if [ -e /tmp/init_reboot ]; then | 	if [ -e /tmp/init_reboot ]; then | ||||||
| 		  break; | 		  break; | ||||||
| 	fi | 	fi | ||||||
| 	    	         | 	    	         | ||||||
|         UPLOAD=ImagesUpload |  | ||||||
|         mount /dev/sda1 /media/hdd |  | ||||||
| 	if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then |  | ||||||
|                 echo "Error mounting, Return to image Flash..." |  | ||||||
|                 sleep 2 |  | ||||||
|                 ln -sfn /sbin/init.sysvinit /sbin/init |  | ||||||
|                 echo "Flash "  > $NEODEVICE$IMAGEKATALOG/.neonextboot  |  | ||||||
|                 echo "Reinstall kernel -Press number 3"  > $NEODEVICE$UPLOAD/.kernel/used_flash_kernel |  | ||||||
|                 echo " Sending all processes the TERM- KILL signal..." |  | ||||||
|                 reboot -f |  | ||||||
| 	fi |  | ||||||
|  |  | ||||||
|  |  | ||||||
| 	TARGET=Flash |  | ||||||
| 	if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ]; then |  | ||||||
| 	  TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot` |  | ||||||
| 	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,6 +119,10 @@ 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 | ||||||
|  |  | ||||||
|  |             echo "Image launched on a base kernel flash. "  > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/kernel_flash | ||||||
|  |  | ||||||
| 	    MODPROBE=/sbin/modprobe | 	    MODPROBE=/sbin/modprobe | ||||||
|  |  | ||||||
| @@ -162,6 +166,7 @@ else | |||||||
|  |  | ||||||
| 	    /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/fbclear > /dev/null 2>&1 | 	    /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/fbclear > /dev/null 2>&1 | ||||||
|  |  | ||||||
|  | 	fi 	 | ||||||
|  |  | ||||||
|         #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