mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-11-02 11:56:20 +01:00
8.24update
This commit is contained in:
1255
NeoBoot/files/extract.py
Normal file
1255
NeoBoot/files/extract.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
IMAGE=ImageBoot
|
||||
NEOBOOTMOUNT=$( cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location)
|
||||
rm -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
|
||||
rm -r -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neom
|
||||
|
||||
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
|
||||
for item in $orgimag; do
|
||||
|
||||
@@ -22,14 +22,14 @@ 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.path import dirname, isdir, isdir as os_isdir
|
||||
from enigma import eTimer
|
||||
from Plugins.Extensions.NeoBoot.files.stbbranding import getNeoLocation, getImageNeoBoot, getKernelVersionString
|
||||
from stbbranding import getNeoLocation, getImageNeoBoot, getKernelVersionString, getBoxHostName, getCPUtype
|
||||
import os
|
||||
import time
|
||||
import sys
|
||||
import struct, shutil
|
||||
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
|
||||
PLUGINVERSION = '8.00'
|
||||
PLUGINVERSION = '8.01'
|
||||
|
||||
neoboot = getNeoLocation()
|
||||
|
||||
@@ -667,16 +667,35 @@ class ReinstallKernel(Screen):
|
||||
self['lab1'] = Label('Reinstalacja j\xc4\x85dra.\n\nZainstalowa\xc4\x87 ?')
|
||||
self['key_red'] = Label(_('Instalacja'))
|
||||
self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close,
|
||||
'red': self.kernel_image})
|
||||
'red': self.InfoCheck})
|
||||
|
||||
def kernel_image(self):
|
||||
os.system('echo "Flash " > ' + getNeoLocation() + 'ImageBoot/.neonextboot')
|
||||
out = open('' + getNeoLocation() + 'ImagesUpload/.kernel/used_flash_kernel', 'w')
|
||||
out.write('Used Kernel: Flash')
|
||||
out.close()
|
||||
cmd1 = 'rm -f /home/root/*.ipk; opkg download kernel-image; sleep 2; opkg install --force-maintainer --force-reinstall --force-overwrite --force-downgrade /home/root/*.ipk; opkg configure update-modules'
|
||||
self.session.open(Console, _('NeoBoot....'), [cmd1])
|
||||
self.close()
|
||||
def InfoCheck(self):
|
||||
if fileExists('/.multinfo'):
|
||||
if getCPUtype() == 'MIPS':
|
||||
if not fileExists( '/boot/' + getBoxHostName() + '.vmlinux.gz'):
|
||||
mess = _('Update available only from the image Flash.')
|
||||
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
|
||||
else:
|
||||
self.kernel_update()
|
||||
|
||||
elif getCPUtype() == 'ARMv7':
|
||||
if not fileExists('/boot/zImage.' + getBoxHostName() + ''):
|
||||
mess = _('Update available only from the image Flash.')
|
||||
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
|
||||
else:
|
||||
self.kernel_update()
|
||||
|
||||
else:
|
||||
self.kernel_update()
|
||||
|
||||
def kernel_update(self):
|
||||
os.system('echo "Flash " > ' + getNeoLocation() + 'ImageBoot/.neonextboot')
|
||||
out = open('' + getNeoLocation() + 'ImagesUpload/.kernel/used_flash_kernel', 'w')
|
||||
out.write('Used Kernel: Flash')
|
||||
out.close()
|
||||
cmd1 = 'rm -f /home/root/*.ipk; opkg download kernel-image; sleep 2; opkg install --force-maintainer --force-reinstall --force-overwrite --force-downgrade /home/root/*.ipk; opkg configure update-modules'
|
||||
self.session.open(Console, _('NeoBoot....'), [cmd1])
|
||||
self.close()
|
||||
|
||||
class ListTv(Screen):
|
||||
__module__ = __name__
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
#!/bin/sh
|
||||
#!/bin/sh -e
|
||||
# script gutosie - here you can add your own command to perform
|
||||
|
||||
if [ ! -e /usr/bin/ipkg ]; then
|
||||
ln -sfn /usr/bin/opkg /usr/bin/ipkg ;
|
||||
ln -sfn /usr/bin/opkg /usr/bin/ipkg
|
||||
fi
|
||||
if [ ! -e /usr/bin/ipkg-cl ]; then
|
||||
ln -sfn /usr/bin/opkg-cl /usr/bin/ipkg-cl;
|
||||
ln -sfn /usr/bin/opkg-cl /usr/bin/ipkg-cl
|
||||
fi
|
||||
|
||||
if [ -f /etc/init.d/inadyn-mt ] ; then
|
||||
/etc/init.d/inadyn-mt start;
|
||||
/etc/init.d/inadyn-mt start
|
||||
fi
|
||||
|
||||
if [ ! -e /media/hdd] || [ ! -e /media/usb] ; then
|
||||
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
|
||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh;
|
||||
fi
|
||||
if [ ! -e /usr/bin/enigma2_pre_start.sh ] ; then
|
||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
|
||||
fi
|
||||
|
||||
echo ok
|
||||
echo "file used userscript "
|
||||
echo ok
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user