mirror of
				https://github.com/gutosie/neoboot.git
				synced 2025-10-31 11:25:47 +01:00 
			
		
		
		
	Update iNB.sh
This commit is contained in:
		
							
								
								
									
										22
									
								
								iNB.sh
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								iNB.sh
									
									
									
									
									
								
							| @@ -5,6 +5,13 @@ | |||||||
| if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then | if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then | ||||||
|   PL=1 |   PL=1 | ||||||
| fi | fi | ||||||
|  | if [ -f /etc/apt/apt.conf ] ; then | ||||||
|  |     STATUS='/var/lib/dpkg/status' | ||||||
|  |     OS='DreamOS' | ||||||
|  | elif [ -f /etc/opkg/opkg.conf ] ; then | ||||||
|  |    STATUS='/var/lib/opkg/status' | ||||||
|  |    OS='Opensource' | ||||||
|  | fi | ||||||
| [ -e /tmp/neoboot.zip ] && rm -f /tmp/neoboot.zip | [ -e /tmp/neoboot.zip ] && rm -f /tmp/neoboot.zip | ||||||
| [ -e /tmp/neoboot-main ] && rm -rf /tmp/neoboot-main | [ -e /tmp/neoboot-main ] && rm -rf /tmp/neoboot-main | ||||||
| [ $PL ] && echo "Pobieranie archiwum..." || echo "Downloading archive file..." | [ $PL ] && echo "Pobieranie archiwum..." || echo "Downloading archive file..." | ||||||
| @@ -44,23 +51,24 @@ chmod 755 ./files/*.sh | |||||||
| chmod -R +x ./ubi_reader_arm/* | chmod -R +x ./ubi_reader_arm/* | ||||||
| chmod -R +x ./ubi_reader_mips/* | chmod -R +x ./ubi_reader_mips/* | ||||||
| if [ $PL ] ; then | if [ $PL ] ; then | ||||||
| chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py |  | ||||||
|   echo "" |   echo "" | ||||||
|   echo "#####################################################" |   echo "#####################################################" | ||||||
|   echo "#          NEOBOOT ZOSTAL ZAINSTALOWANY             #" |   echo "#          NEOBOOT ZOSTAL ZAINSTALOWANY             #" | ||||||
|   echo "#                                                   #" |  | ||||||
|   echo "#               ZRESTARTUJ TUNER                    #" |  | ||||||
|   echo "#####################################################" |   echo "#####################################################" | ||||||
|   echo "" |   echo "" | ||||||
| else | else | ||||||
|   echo "" |   echo "" | ||||||
|   echo "#####################################################" |   echo "#####################################################" | ||||||
|   echo "#          NEOBOOT INSTALLED SUCCESSFULLY           #" |   echo "#          NEOBOOT INSTALLED SUCCESSFULLY           #" | ||||||
|   echo "#                                                   #" |  | ||||||
|   echo "#            PLEASE RESTART YOUR STB                #" |  | ||||||
|   echo "#####################################################" |   echo "#####################################################" | ||||||
|   echo "" |   echo "" | ||||||
| fi | fi | ||||||
| echo "              ----- Restart GUI... -----               " | echo "          ----- Restart Enigma2 GUI ... -----               " | ||||||
| sleep 5; killall -9 enigma2 | chattr +i /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/plugin.py | ||||||
|  | sleep 5 | ||||||
|  | if [ $OS = 'DreamOS' ]; then  | ||||||
|  |     systemctl restart enigma2 | ||||||
|  | else | ||||||
|  |     killall -9 enigma2 | ||||||
|  | fi | ||||||
| exit 0      | exit 0      | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user