mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-10-30 10:55:47 +01:00 
			
		
		
		
	Add files via upload
This commit is contained in:
		| @@ -1196,17 +1196,42 @@ class CheckInstall(Screen): | |||||||
|             self.myClose(_('Sorry, Neoboot can be installed or upgraded only when booted from Flash')) |             self.myClose(_('Sorry, Neoboot can be installed or upgraded only when booted from Flash')) | ||||||
|  |  | ||||||
|     def neocheck2(self): |     def neocheck2(self): | ||||||
|         try: |             os.system('rm -f ' + LinkNeoBoot + '/files/modulecheck.sh; echo "#!/bin/sh\n#DESCRIPTION=This script by gutosie\n====================================================>\nCheck result:"  > ' + LinkNeoBoot + '/files/modulecheck.sh')  | ||||||
|             cmd = ' ' +LinkNeoBoot+ '/files/modulecheck.sh' |             if getCPUtype() == 'ARMv7': | ||||||
|  |                 if os.system('opkg update; opkg list-installed | grep python-subprocess') != 0: | ||||||
|  |                             os.system('echo "*    python-subprocess not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh') | ||||||
|  |                 if os.system('opkg list-installed | grep python-argparse') != 0: | ||||||
|  |                             os.system('echo "*    python-argparse not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                             | ||||||
|  |                 if os.system('opkg list-installed | grep curl') != 0: | ||||||
|  |                             os.system('echo "*    curl not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                                                                                | ||||||
|  |             if getCPUtype() == 'MIPS': | ||||||
|  |                 if os.system('opkg list-installed | grep kernel-module-nandsim') != 0: | ||||||
|  |                             os.system('echo "*    kernel-module-nandsim not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                    | ||||||
|  |                 if os.system('opkg list-installed | grep mtd-utils-jffs2') != 0: | ||||||
|  |                             os.system('echo "*    mtd-utils-jffs2 not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                 | ||||||
|  |                 if os.system('opkg list-installed | grep lzo') != 0: | ||||||
|  |                             os.system('echo "*    lzo not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                                             | ||||||
|  |                 if os.system('opkg list-installed | grep python-setuptools') != 0:  | ||||||
|  |                             os.system('echo "*    python-setuptools not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                                                                         | ||||||
|  |                 if os.system('opkg list-installed | grep util-linux-sfdisk') != 0:  | ||||||
|  |                             os.system('echo "*    util-linux-sfdisk not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                  | ||||||
|  |                 if os.system('opkg list-installed | grep packagegroup-base-nfs') != 0:  | ||||||
|  |                             os.system('echo "*    packagegroup-base-nfs not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                                            | ||||||
|  |                 if os.system('opkg list-installed | grep ofgwrite') != 0: | ||||||
|  |                             os.system('echo "*    ofgwrite not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                                                                                                                                                                                                                                                                                                                                                                 | ||||||
|  |                 if os.system('opkg list-installed | grep bzip2') != 0:   | ||||||
|  |                             os.system('echo "*    bzip2 not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                                                                                                                                                                                                                                                                                                                                                               | ||||||
|  |                 if os.system('opkg list-installed | grep mtd-utils') != 0: | ||||||
|  |                             os.system('echo "*    mtd-utils not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                 | ||||||
|  |                 if os.system('opkg list-installed | grep mtd-utils-ubifs') != 0: | ||||||
|  |                             os.system('echo "*    mtd-utils-ubifs not installed"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh')                                                                                                                                                                                                                                                                                                                                                                 | ||||||
|  |             else:             | ||||||
|  |                 os.system('echo "*    Everything is OK !"  >>  ' +LinkNeoBoot+ '/files/modulecheck.sh') | ||||||
|  |  | ||||||
|  |             cmd = ' cat ' +LinkNeoBoot+ '/files/modulecheck.sh' | ||||||
|  |             cmd1 = '' | ||||||
|             self.session.openWithCallback(self.close, Console, _('NeoBoot....'), [cmd, |             self.session.openWithCallback(self.close, Console, _('NeoBoot....'), [cmd, | ||||||
|              cmd])  |                      cmd1])  | ||||||
|             self.close() |  | ||||||
|  |  | ||||||
|         except: |  | ||||||
|             False |  | ||||||
|  |  | ||||||
|     def myClose(self, message): |  | ||||||
|             self.session.open(MessageBox, message, MessageBox.TYPE_INFO)         |  | ||||||
|             self.close() |             self.close() | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user