mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-10-31 19:35:48 +01:00 
			
		
		
		
	Update iNB.sh
This commit is contained in:
		
							
								
								
									
										9
									
								
								iNB.sh
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								iNB.sh
									
									
									
									
									
								
							| @@ -37,6 +37,10 @@ fi | ||||
| unzip -qn ./neoboot.zip | ||||
| rm -f /tmp/neoboot.zip | ||||
| [ -e /tmp/main.zip ] && rm -rf /tmp/main.zip | ||||
| BOXHOSTNAME=$( cat /etc/hostname) | ||||
| if [ $BOXHOSTNAME = "dm500hd" ] || [ $BOXHOSTNAME = dm800se" ] || [ $BOXHOSTNAME = "dm800" ] || [ $BOXHOSTNAME = "dm8000" ]; then | ||||
|     cp -af /tmp/NeoBoot/tmpfiles/runpy/mips_run.py /tmp/NeoBoot/run.py; rm -r /tmp/NeoBoot/ubi_reader*;  rm -r /tmp/NeoBoot/tmpfiles; rm -r /tmp/NeoBoot/bin/neoinitar*;  rm -r /tmp/NeoBoot/bin/nanddump*; rm -r /tmp/NeoBoot/bin/fbcle* | ||||
| fi | ||||
| #kopiowanie | ||||
| if [ -e $Cel/NeoBoot/.location ]; then  | ||||
|    rm -rf $Cel/NeoBoot/.location    | ||||
| @@ -53,9 +57,7 @@ chmod 755 ./ex_init.py | ||||
| chmod 755 ./files/*.sh | ||||
| chmod -R +x ./ubi_reader_arm/* | ||||
| chmod -R +x ./ubi_reader_mips/* | ||||
| if [ -e /etc/name ]; then  | ||||
|     rm -f /tmp/.*   | ||||
| fi | ||||
| chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py | ||||
| if [ $PL ] ; then | ||||
|   echo "" | ||||
|   echo "#####################################################" | ||||
| @@ -74,7 +76,6 @@ sleep 2 | ||||
| if [ $OS = 'DreamOS' ]; then  | ||||
|     systemctl restart enigma2 | ||||
| else | ||||
|     chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py | ||||
|     killall -9 enigma2 | ||||
| fi | ||||
| exit 0      | ||||
|   | ||||
		Reference in New Issue
	
	Block a user