mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-02 12:25:46 +01:00
Add files via upload
This commit is contained in:
@@ -1878,23 +1878,24 @@ class Opis(Screen):
|
|||||||
|
|
||||||
def neogithub(self, answer):
|
def neogithub(self, answer):
|
||||||
if answer is True:
|
if answer is True:
|
||||||
system('rm -rf ' + LinkNeoBoot + '/.location')
|
if fileExists('' + LinkNeoBoot + '/.location'):
|
||||||
if fileExists('/usr/bin/fullwget'):
|
system('rm -f ' + LinkNeoBoot + '/.location')
|
||||||
cmd1 = 'cd /tmp; rm ./*.sh; fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/iNB.sh;chmod 755 ./iNB.sh;sh ./iNB.sh; rm ./iNB.sh; cd /'
|
if fileExists('/usr/bin/curl'):
|
||||||
self.session.open(Console, _('NeoBoot....'), [cmd1])
|
|
||||||
self.close()
|
|
||||||
elif fileExists('/usr/bin/curl'):
|
|
||||||
cmd1 = 'curl -kLs https://raw.githubusercontent.com/gutosie/neoboot/master/iNB.sh|sh'
|
cmd1 = 'curl -kLs https://raw.githubusercontent.com/gutosie/neoboot/master/iNB.sh|sh'
|
||||||
self.session.open(Console, _('NeoBoot....'), [cmd1])
|
self.session.open(Console, _('NeoBoot....'), [cmd1])
|
||||||
self.close()
|
self.close()
|
||||||
elif fileExists('/usr/bin/wget'):
|
elif fileExists('/usr/bin/wget'):
|
||||||
cmd1 = 'cd /tmp; rm ./*.sh; wget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/iNB.sh;chmod 755 ./iNB.sh;sh ./iNB.sh; rm ./iNB.sh; cd /'
|
cmd1 = 'cd /tmp; rm ./*.sh; wget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/iNB.sh;chmod 755 ./iNB.sh;sh ./iNB.sh; rm ./iNB.sh; cd /'
|
||||||
self.session.open(Console, _('NeoBoot....'), [cmd1])
|
self.session.open(Console, _('NeoBoot....'), [cmd1])
|
||||||
self.close()
|
self.close()
|
||||||
|
elif fileExists('/usr/bin/fullwget'):
|
||||||
|
cmd1 = 'cd /tmp; rm ./*.sh; fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/iNB.sh;chmod 755 ./iNB.sh;sh ./iNB.sh; rm ./iNB.sh; cd /'
|
||||||
|
self.session.open(Console, _('NeoBoot....'), [cmd1])
|
||||||
|
self.close()
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
message = _('Are you sure you want to completely remove NeoBoota of your image?\n\nIf you choose so all directories NeoBoota will be removed.\nA restore the original image settings Flash.')
|
message = _('Are you sure you want to completely remove NeoBoota of your image?\n\nIf you choose so all directories NeoBoota will be removed.\nA restore the original image settings Flash.')
|
||||||
|
|||||||
Reference in New Issue
Block a user