Add files via upload

This commit is contained in:
gutosie
2021-03-10 11:31:15 +02:00
committed by GitHub
parent 7b7405c138
commit 36c65ab5a7

View File

@@ -1102,17 +1102,17 @@ class NeoBootImageChoose(Screen):
if fileExists('/tmp/*.zip'): if fileExists('/tmp/*.zip'):
os.system('rm /tmp/*.zip') os.system('rm /tmp/*.zip')
if fileExists('/usr/bin/curl'): if fileExists('/usr/bin/curl'):
os.system('sync; cd /tmp; curl -O --ftp-ssl https://github.com/gutosie/neoboot/archive/main.zip; unzip -qn ./main.zip; sleep 2;sd cd /') os.system('cd /tmp; curl -O --ftp-ssl https://github.com/gutosie/neoboot/archive/main.zip; unzip -qn ./main.zip; sleep 2;cd /')
if not fileExists('/tmp/neoboot-main/NeoBoot'): if not fileExists('/tmp/neoboot-main/NeoBoot'):
if fileExists('/tmp/main.zip'): if fileExists('/tmp/main.zip'):
os.system('rm -r /tmp/main.zip') os.system('rm -r /tmp/main.zip')
if fileExists('/usr/bin/fullwget'): if fileExists('/usr/bin/fullwget'):
os.system('cd ' + LinkNeoBoot + ';fullwget --no-check-certificate https://github.com/gutosie/neoboot/archive/main.zip; unzip -qn ./main.zip; sleep 2;sd cd /') os.system('cd /tmp; fullwget --no-check-certificate https://github.com/gutosie/neoboot/archive/main.zip; unzip -qn ./main.zip; sleep 2;cd /')
if not fileExists('/tmp/neoboot-main/NeoBoot'): if not fileExists('/tmp/neoboot-main/NeoBoot'):
if fileExists('/tmp/main.zip'): if fileExists('/tmp/main.zip'):
os.system('rm -r /tmp/main.zip') os.system('rm -r /tmp/main.zip')
if fileExists('/usr/bin/wget'): if fileExists('/usr/bin/wget'):
os.system('cd /tmp;rm ./*.zip; wget --no-check-certificate https://github.com/gutosie/neoboot/archive/main.zip; unzip -qn ./main.zip; sleep 2;cd / ') os.system('cd /tmp; rm ./*.zip; wget --no-check-certificate https://github.com/gutosie/neoboot/archive/main.zip; unzip -qn ./main.zip; sleep 2;cd / ')
if not fileExists('/tmp/neoboot-main/NeoBoot'): if not fileExists('/tmp/neoboot-main/NeoBoot'):
self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 10) self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 10)
else: else: