mirror of
https://github.com/gutosie/neoboot.git
synced 2025-12-22 00:09:39 +01:00
Update plugin.py
This commit is contained in:
@@ -1639,7 +1639,7 @@ def main(session, **kwargs):
|
|||||||
if checkInternet():
|
if checkInternet():
|
||||||
if not os.path.exists('/tmp/.finishdate'):
|
if not os.path.exists('/tmp/.finishdate'):
|
||||||
os.system('date "+%Y%m%d" > /tmp/.finishdate')
|
os.system('date "+%Y%m%d" > /tmp/.finishdate')
|
||||||
if fileExists('/tmp/.nkod'):
|
if fileExists('/tmp/.nkod') :
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
if not fileExists('/tmp/ver.txt'):
|
if not fileExists('/tmp/ver.txt'):
|
||||||
@@ -1652,7 +1652,9 @@ def main(session, **kwargs):
|
|||||||
if fileExists('/usr/bin/fullwget'):
|
if fileExists('/usr/bin/fullwget'):
|
||||||
os.system('cd /tmp; fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/neoboot/.neouser; cd /')
|
os.system('cd /tmp; fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/neoboot/master/ver.txt; curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/neoboot/.neouser; cd /')
|
||||||
if fileExists('/tmp/ver.txt'):
|
if fileExists('/tmp/ver.txt'):
|
||||||
os.system('mv /tmp/ver.txt /tmp/.nkod; mv /tmp/.neouser /usr/lib/periodon/.activatedmac; cd /')
|
if fileExists('/usr/lib/periodon/.activatedmac'):
|
||||||
|
os.system('chattr -i /usr/lib/periodon/.activatedmac')
|
||||||
|
os.system('mv /tmp/ver.txt /tmp/.nkod; mv /tmp/.neouser /usr/lib/periodon/.activatedmac; chattr +i /usr/lib/periodon/.activatedmac; cd /')
|
||||||
else:
|
else:
|
||||||
os.system(_('echo %s > /tmp/.nkod') % UPDATEVERSION)
|
os.system(_('echo %s > /tmp/.nkod') % UPDATEVERSION)
|
||||||
from Plugins.Extensions.NeoBoot.files.stbbranding import getCheckInstal1, getCheckInstal2, getCheckInstal3
|
from Plugins.Extensions.NeoBoot.files.stbbranding import getCheckInstal1, getCheckInstal2, getCheckInstal3
|
||||||
|
|||||||
Reference in New Issue
Block a user