mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-03 04:35:47 +01:00
Add files via upload
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# system modules
|
# system modules
|
||||||
|
|
||||||
@@ -33,7 +34,7 @@ from Tools.Directories import resolveFilename, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE,
|
|||||||
from os import system, listdir, mkdir, chdir, getcwd, rename as os_rename, remove as os_remove, popen
|
from os import system, listdir, mkdir, chdir, getcwd, rename as os_rename, remove as os_remove, popen
|
||||||
from os.path import dirname, isdir, isdir as os_isdir
|
from os.path import dirname, isdir, isdir as os_isdir
|
||||||
from enigma import eTimer
|
from enigma import eTimer
|
||||||
from stbbranding import fileCheck, getNeoLocation, getImageNeoBoot, getKernelVersionString, getBoxHostName, getCPUtype, getBoxVuModel, getTunerModel, getCPUSoC, getImageATv, getBoxModelVU
|
from Plugins.Extensions.NeoBoot.files.stbbranding import fileCheck, getNeoLocation, getImageNeoBoot, getKernelVersionString, getBoxHostName, getCPUtype, getBoxVuModel, getTunerModel, getCPUSoC, getImageATv, getBoxModelVU
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
@@ -161,11 +162,11 @@ class MBTools(Screen):
|
|||||||
self.list.append (res)
|
self.list.append (res)
|
||||||
self ['list']. list = self.list
|
self ['list']. list = self.list
|
||||||
|
|
||||||
res = (_ ('Uninstall NeoBoot'), png, 5)
|
res = (_ ('Restore neoboot backup'), png, 5)
|
||||||
self.list.append (res)
|
self.list.append (res)
|
||||||
self ['list']. list = self.list
|
self ['list']. list = self.list
|
||||||
|
|
||||||
res = (_ ('Reinstall NeoBoot'), png, 6)
|
res = (_ ('Uninstall NeoBoot'), png, 6)
|
||||||
self.list.append (res)
|
self.list.append (res)
|
||||||
self ['list']. list = self.list
|
self ['list']. list = self.list
|
||||||
|
|
||||||
@@ -244,9 +245,9 @@ class MBTools(Screen):
|
|||||||
pass
|
pass
|
||||||
if self.sel == 4 and self.session.open(BackupMultiboot):
|
if self.sel == 4 and self.session.open(BackupMultiboot):
|
||||||
pass
|
pass
|
||||||
if self.sel == 5 and self.session.open(UnistallMultiboot):
|
if self.sel == 5 and self.session.open(ReinstllNeoBoot):
|
||||||
pass
|
pass
|
||||||
if self.sel == 6 and self.session.open(ReinstllNeoBoot):
|
if self.sel == 6 and self.session.open(UnistallMultiboot):
|
||||||
pass
|
pass
|
||||||
if self.sel == 7 and self.session.open(UpdateNeoBoot):
|
if self.sel == 7 and self.session.open(UpdateNeoBoot):
|
||||||
pass
|
pass
|
||||||
@@ -1202,7 +1203,6 @@ class CheckInstall(Screen):
|
|||||||
os.system('echo "* neoboot location:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
os.system('echo "* neoboot location:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
||||||
os.system('echo "\n* neoboot location install:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
os.system('echo "\n* neoboot location install:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
||||||
os.system('echo "\n* neoboot location mount:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
os.system('echo "\n* neoboot location mount:" >> ' +LinkNeoBoot+ '/files/modulecheck; cat "/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
||||||
|
|
||||||
if getCPUtype() == 'ARMv7' and getCPUtype() != 'MIPS':
|
if getCPUtype() == 'ARMv7' and getCPUtype() != 'MIPS':
|
||||||
if os.system('opkg update; opkg list-installed | grep python-subprocess') != 0:
|
if os.system('opkg update; opkg list-installed | grep python-subprocess') != 0:
|
||||||
os.system('echo "\n* python-subprocess not installed" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
os.system('echo "\n* python-subprocess not installed" >> ' +LinkNeoBoot+ '/files/modulecheck')
|
||||||
@@ -1614,7 +1614,7 @@ class ATVcamfeed(Screen):
|
|||||||
|
|
||||||
def __init__(self, session):
|
def __init__(self, session):
|
||||||
Screen.__init__(self, session)
|
Screen.__init__(self, session)
|
||||||
self['lab1'] = Label(_('Add Cam dowloand from feed.'))
|
self['lab1'] = Label(_('Add softcam download from feed.'))
|
||||||
self['key_red'] = Label(_('Start'))
|
self['key_red'] = Label(_('Start'))
|
||||||
self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close,
|
self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close,
|
||||||
'red': self.addcamatv})
|
'red': self.addcamatv})
|
||||||
|
|||||||
Reference in New Issue
Block a user