17 Commits
9.05 ... master

Author SHA1 Message Date
gutosie
4862c0444c duo4k add 2020-11-08 18:30:17 +02:00
gutosie
77ddc53c33 Update stbinfo 2020-11-08 18:25:48 +02:00
gutosie
37beecea96 duo4k 2020-11-08 18:08:50 +02:00
gutosie
89b4bdbe6f update 9.08 - add Duo4Kse and fix Duo4K 2020-11-08 11:01:18 +02:00
gutosie
8e1b0c751f add duo4kse. fix duo4k 2020-11-08 11:00:22 +02:00
gutosie
d740371520 add duo4kse, fix duo4k 2020-11-08 10:59:12 +02:00
gutosie
494ab6070c update 9.08 2020-11-08 10:57:05 +02:00
gutosie
6e42a21ef0 update 9.07 2020-10-25 09:29:32 +02:00
gutosie
3b9dfa151e 9.07 update 2020-10-25 09:28:46 +02:00
gutosie
7920b9cc24 fix crash 2020-10-25 09:27:21 +02:00
gutosie
b8c421f3e1 update 2020-09-30 12:16:39 +03:00
gutosie
561c7d3978 update-9.06 2020-09-30 11:58:42 +03:00
gutosie
767c1f43ce update_9.06 2020-09-30 11:55:28 +03:00
gutosie
688c0b0a6f neo 9.03 update 9.06 fix MIPS architecture processorsr 2020-09-30 11:53:45 +03:00
gutosie
8f136eb189 add feed cam atv 2020-09-30 11:52:03 +03:00
gutosie
b9d237f2ef fix mips tuner (mbmini) 2020-09-30 11:51:24 +03:00
gutosie
1b0bc634d7 update 9.06 2020-09-30 11:50:32 +03:00
13 changed files with 900 additions and 35 deletions

322
NeoBoot/bin/neoinitmips Normal file
View File

@@ -0,0 +1,322 @@
#!/bin/sh
#DESCRIPTION = This script mod. by gutosie
#NeoBoot INIT Version: 6.00
#Scrypt Unix Shell - init for neoboot
IMAGE=/media/neoboot/ImageBoot
IMAGEBOOT=/media/neoboot/ImageBoot/.neonextboot
NEO=/media/neoboot
NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot
MODPROBE=/sbin/modprobe
BOXNAME=`cat /etc/hostname`
FINDBOOT=/media/*/ImageBoot/.neonextboot
if [ -e /tmp/.init_reboot ]; then
rm /tmp/.init_reboot
break;
else
if [ -e $FINDBOOT ] ; then
CELBOOT=`cat $FINDBOOT`
if [ $CELBOOT = "Flash" ]; then
exec /sbin/init.sysvinit $*
exit 0
else
echo " "
break;
fi
fi
echo "====================================================> "
echo " "
echo " -=*[ NEOBOOT - BOOT UP ]*=- "
echo " NEO BOOT INIT Version: 6.00 Update 6.15 16-11-2017 "
echo " q(-_-)p "
echo " "
echo "====================================================> "
/etc/init.d/sysfs.sh
/etc/init.d/modutils.sh
echo "NEOBOOT is starting mdev"
echo " "
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
/etc/init.d/mdev > /dev/null 2>&1
mknod /dev/sda b 8 0
mknod /dev/sda1 b 8 1
mknod /dev/sda2 b 8 2
mknod /dev/sdb b 8 16
mknod /dev/sdb1 b 8 17
mknod /dev/sdb2 b 8 18
mknod /dev/sdc b 8 32
mknod /dev/sdc1 b 8 33
mknod /dev/sdc2 b 8 34
mknod /dev/sdd b 8 48
mknod /dev/sdd1 b 8 49
mknod /dev/sdd2 b 8 50
mkdir /dev/input
mknod /dev/input/event0 c 13 64
mknod /dev/fb0 c 29 0
mkdir /dev/fb
ln -s ../fb0 /dev/fb/0
sleep 1
if [ -e /etc/videomode ]; then
cat /etc/videomode > /proc/stb/video/videomode
fi
if [ -e /etc/videomode2 ]; then
cat /etc/videomode2 > /proc/stb/video/videomode
fi
(
if [ -d /proc/stb ]; then
while true; do
if [ -e /dev/dvb/adapter0/video0 ]; then
break;
fi;
done;
fi;
[ -e /etc/dropbear/dropbear_rsa_host_key ] && /usr/bin/showiframe $NEOBOOT/neowait.mvi;
) &
DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1;
do
if [ ! -e /media/neoboot/ImageBoot/.neonextboot ]; then
mount $DEVICE /media/neoboot > /dev/null 2>&1
fi
if [ ! -e /media/neoboot/ImageBoot/.neonextboot ]; then
umount /media/neoboot > /dev/null 2>&1
fi
done
LIBDIR=/lib/modules/`uname -r`
if [ ! -d $LIBDIR ]; then
LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1`
fi
if [ `mount | grep /proc | wc -l` -lt 1 ]; then
/bin/mount -t proc proc /proc > /dev/null 2>&1
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
/sbin/depmod -Ae > /dev/null 2>&1
fi
sleep 1
echo " "
echo "Search NEOBOOT... "
#sed=grep
mnttest="nouuid"
if [ -e $NEOBOOT/bin/install ]; then
orgimag1=`mount | grep '/sd/!d' | cut -d" " -f1`
selectinstall=`cat $NEOBOOT/bin/install`
for item in $orgimag1; do
selectmnt=`blkid | grep "/$selectinstall/!d" | cut -d":" -f1`
if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt
mnttest="uuid"
mount $selectmnt $NEO > /dev/null 2>&1
fi
if [ ! -e $IMAGE ]; then
echo "NEOBOOT hasn't been installed on: " $selectmnt
umount $NEO > /dev/null 2>&1
else
echo "NEOBOOT has been installed on: " $selectmnt
break;
fi
done
fi
if [ ! -e $NEO ]; then
mkdir $NEO > /dev/null 2>&1
fi
if [ $mnttest == "nouuid" ]; then
echo "NEOBOOT mount by Device"
DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1;
do
if [ -e $NEO ]; then
echo "NEOBOOT checking installation on: " $DEVICE
mount $DEVICE $NEO > /dev/null 2>&1
fi
if [ ! -e $IMAGE ]; then
echo "NEOBOOT hasn't been installed on:" $DEVICE
umount $NEO > /dev/null 2>&1
else
echo "NEOBOOT has been installed on: " $DEVICE
break;
fi
done
elif [ $mnttest == "uuid" ]; then
echo "NEOBOOT mount by UUID"
fi
#dodatkowe szukanie neoboota
#mount /dev/sdb1 $NEO > /dev/null 2>&1 # <<< tu mozesz zmienic sdb1 i wpisac Twoje montowanie dysku dla neoboot
echo "NEOBOOT is loading modules."
for mod in dvb; do
echo "=======================> NeoBoot is loading modules"
$MODPROBE $mod
done
if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then
/sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1
fi
sleep 1
if [ -e $NEOBOOT/bin/fbclear ]; then
$NEOBOOT/bin/fbclear; $NEOBOOT/bin/fbclear; $NEOBOOT/bin/fbclear; $NEOBOOT/bin/fbclear > /dev/null 2>&1
fi
if [ -e $NEOBOOT/bin/neobm ]; then
echo " Neo-Boot start boot manager "
echo " Waiting to change image - 20s "
echo " "
chmod 0755 $NEOBOOT/bin/neobm
$NEOBOOT/neologo.mvi > /dev/null 2>&1
sleep 1
$NEOBOOT/bin/neobm > /dev/null 2>&1
fi
if [ ! -e $IMAGEBOOT ]; then
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $IMAGEBOOT
echo "Used Kernel: Reinstall kernel !" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
reboot -f
fi
TARGETIMAGE=`cat $IMAGEBOOT`
if [ $TARGETIMAGE = "BlackHoleVU" ] || [ $TARGETIMAGE = "BlackHoleVU+" ] ; then
if ! [ -e $NEO/ImagesUpload/.kernel/used_bh_kernel ]; then
rm -f $IMAGEBOOT
echo "Flash " >> $IMAGEBOOT
echo "Halt init image - " $TARGETIMAGE
echo "Start image Flash... "
$NEOBOOT/bh.mvi > /dev/null 2>&1
sync; sleep 1
exec /sbin/init.sysvinit $*
exit 0
else
break;
fi
fi
sync
TARGET=Flash
if [ -f $IMAGEBOOT ]; then
TARGET=`cat $IMAGEBOOT`
fi
if [ $TARGET = "Flash" ]; then
echo "____________________________________"
echo "____________________________________"
echo " "
echo "NEOBOOT is booting image from " $TARGET
echo "____________________________________"
echo "____________________________________"
/bin/umount $NEO > /dev/null 2>&1
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
/usr/bin/showiframe /usr/share/bootlogo.mvi > /dev/null 2>&1
echo "----------------------------------"
echo " BOOT UP IMAGE FROM FLASH "
echo "----------------------------------"
else
echo " "
echo "NEOBOOT is booting image" $TARGET " from " $DEVICE
echo " "
if [ -d $IMAGE/$TARGET ]; then
if [ -f $IMAGE/$TARGET/etc/init.d/udev ]; then
sed -ei s!"\$4"!"\$3"!g $IMAGE/$TARGET/etc/init.d/udev
fi
if [ -f $IMAGE/$TARGET/usr/share/bootlogo.mvi ]; then
/usr/bin/showiframe $IMAGE/$TARGET/usr/share/bootlogo.mvi > /dev/null 2>&1
fi
sleep 1
/bin/mount -o bind /dev $IMAGE/$TARGET/dev
/bin/mount -o bind /proc $IMAGE/$TARGET/proc
/bin/mount -o bind /sys $IMAGE/$TARGET/sys
rm $IMAGE/$TARGET/media/neoboot > /dev/null 2>&1
mkdir $IMAGE/$TARGET/media/neoboot > /dev/null 2>&1
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
rm -f $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3`
if [ $nhdd == '$NEO' ]; then
echo $nhdd
echo "mkdir "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
else
echo "umount "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
fi
done
if [ -f $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh ]; then
chmod 755 $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
fi
echo "----------------------------------------"
echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- "
echo "----------------------------------------"
if [ ! -f /media/neoboot/ImageBoot/$TARGET/media/neoboot/ImageBoot/.neonextboot ]; then
/bin/mount -o bind /media/neoboot /media/neoboot/ImageBoot/$TARGET/media/neoboot
fi
DEVICES1=`ls /media`
for DEVICE in $DEVICES1;
do
if [ -f /media/$DEVICE/ImageBoot/.neonextboot ]; then
/bin/mount -o bind /media/neoboot /media/neoboot/ImageBoot/$TARGET/media/$DEVICE
fi
done
cd /media/neoboot/ImageBoot/$TARGET;
if [ -f $IMAGE/$TARGET/sbin/init.sysvinit ]; then
exec /usr/sbin/chroot . /sbin/init.sysvinit $*
elif [ -f $IMAGE/$TARGET/sbin/init ]; then
exec /usr/sbin/chroot . /sbin/init $*
else
echo " "
echo " NEOBOOT - ERROR !!! "
echo "Nie odnaleziono poprawnie rozpakowanego image "$TARGET" z partycji " $DEVICE
echo " Sprawdz poprawnosc rozpakowanych katalogow w wybranym image. "
echo " Powrot do image Flash... "
rm -f $IMAGEBOOT; touch $IMAGEBOOT; echo "Flash " >> $IMAGEBOOT
/usr/bin/showiframe $NEOBOOT/error.mvi > /dev/null 2>&1
sync; sleep 10; exec /sbin/init.sysvinit $*
fi
exit 0
fi
fi
fi
if [ -f /sbin/init.sysvinit ]; then
exec /sbin/init.sysvinit $*
fi
exit 0
;;
esac
exit

136
NeoBoot/bin/neoinitmipsvu Normal file
View File

@@ -0,0 +1,136 @@
#!/bin/sh
#script mod by gutosie
IMAGE=/media/neoboot/ImageBoot
IMAGEBOOT=/media/neoboot/ImageBoot/.neonextboot
NEO=/media/neoboot
NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot
MODPROBE=/sbin/modprobe
BOXNAME=`cat /etc/hostname`
FINDBOOT=/media/*/ImageBoot/.neonextboot
CELBOOT=`cat $FINDBOOT`
if [ $CELBOOT = "Flash" ] || [ -e /tmp/.init_reboot ] ; then
exec /sbin/init.sysvinit $1
else
LIBDIR=/lib/modules/`uname -r`
if [ ! -d $LIBDIR ]; then
LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1`
fi
if [ `mount | grep /proc | wc -l` -lt 1 ]; then
/bin/mount -t proc proc /proc > /dev/null 2>&1
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
/sbin/depmod -Ae > /dev/null 2>&1
fi
sleep 2
mnttest="nouuid"
if [ -e $NEOBOOT/bin/install ]; then
orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1`
selectinstall=`cat $NEOBOOT/bin/install`
for item in $orgimag1; do
selectmnt=`blkid | sed '/$selectinstall/!d' | cut -d":" -f1`
if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt
mnttest="uuid"
mount $selectmnt $NEO > /dev/null 2>&1
fi
if [ ! -e $NEO/ImageBoot ]; then
echo "NEOBOOT hasn't been installed on: " $selectmnt
umount $NEO > /dev/null 2>&1
else
echo "NEOBOOT has been installed on: " $selectmnt
break;
fi
done
fi
if [ ! -e $NEO ]; then
mkdir $NEO > /dev/null 2>&1
fi
if [ $mnttest == "nouuid" ] ; then
echo "NeoBoot mount by Device"
DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1;
do
if [ -e $NEO ]; then
echo "neoboot checking installation on: " $DEVICE
mount $DEVICE $NEO > /dev/null 2>&1
fi
if [ ! -e $NEO/ImageBoot ]; then
echo "NeoBoot hasn't been installed on: " $DEVICE
umount $NEO > /dev/null 2>&1
else
echo "NEOBOOTt has been installed on: " $DEVICE
break;
fi
done
elif [ $mnttest == "uuid" ]; then
echo "NEOBOOT mount by UUID"
fi
if [ ! -e $IMAGEBOOT ]; then
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $IMAGEBOOT
echo "Used Kernel: Reinstall kernel !" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
reboot -f
fi
TARGET=Flash
if [ -f $IMAGEBOOT ]; then
TARGET=`cat $IMAGEBOOT`
fi
if [ $TARGET = "Flash" ]; then
echo "NEOBOOT is booting image from " $TARGET
/bin/umount $NEO > /dev/null 2>&1
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
else
echo "NEOBOOT is booting" $TARGET " from " $DEVICE
echo 3 > /proc/sys/vm/drop_caches
if [ -d $NEO/ImageBoot/$TARGET ]; then
if [ -f $NEO/ImageBoot/$TARGET/etc/init.d/udev ]; then
sed -ie s!"\$4"!"\$3"!g $NEO/ImageBoot/$TARGET/etc/init.d/udev
fi
sleep 1
/bin/mount -o bind /dev $NEO/ImageBoot/$TARGET/dev
/bin/mount -o bind /proc $NEO/ImageBoot/$TARGET/proc
/bin/mount -o bind /sys $NEO/ImageBoot/$TARGET/sys
rm $NEO/ImageBoot/$TARGET$NEO > /dev/null 2>&1
mkdir $NEO/ImageBoot/$TARGET$NEO > /dev/null 2>&1
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
rm -f $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3`
if [ $nhdd == '$NEO' ]; then
echo $nhdd
echo "mkdir "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
else
echo "umount "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
echo ok
fi
done
chmod 755 $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh
if [ -f $IMAGE/$TARGET/sbin/init.sysvinit ]; then
exec /usr/sbin/chroot $IMAGE/$TARGET /sbin/init.sysvinit
elif [ -f $IMAGE/$TARGET/sbin/init ]; then
exec /usr/sbin/chroot $IMAGE/$TARGET /sbin/init
else
echo " "
echo " NEOBOOT - ERROR !!! "
echo "Nie odnaleziono poprawnie rozpakowanego image "$TARGET" z partycji " $DEVICE
echo " Sprawdz poprawnosc rozpakowanych katalogow w wybranym image. "
echo " Powrot do image Flash... "
rm -f $IMAGEBOOT; touch $IMAGEBOOT; echo "Flash " >> $IMAGEBOOT
sync; sleep 10; exec /sbin/init.sysvinit $1
fi
exit 0
fi
fi
fi
if [ -f /sbin/init.sysvinit ]; then
exec /sbin/init.sysvinit $1
fi
exit 0

View File

@@ -164,7 +164,7 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Lan
os.system('mv ' + getNeoLocation() + 'ImagesUpload/' + getBoxHostName() + '/kernel.bin ' + media_target + '/boot/zImage.' + getBoxHostName() + '' + dev_null)
os.system('echo "Copied kernel.bin STB-ARM DM920 4K."')
#arm Dreambox dm920
#arm ax51
elif getBoxHostName() == 'ax51':
os.system('mv ' + getNeoLocation() + 'ImagesUpload/hd51/kernel.bin ' + media_target + '/boot/zImage.' + getBoxHostName() + '' + dev_null)
os.system('echo "Copied kernel.bin STB-ARM AX 4K Box HD51 4K."')
@@ -175,7 +175,7 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Lan
os.system('echo "Copied kernel.bin STB-ARM Ariva 4K Combo."')
#arm Zgemma h7
elif getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
elif getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' and getBoxHostName() != 'ax51':
os.system('mv ' + getNeoLocation() + 'ImagesUpload/zgemma/' + getBoxHostName() + '/kernel.bin ' + media_target + '/boot/zImage.' + getBoxHostName() + '' + dev_null)
os.system('echo "Copied kernel.bin STB-ARM Zgemma h7."')
#arm gbquad4k
@@ -406,13 +406,17 @@ def NEOBootMainEx(source, target, stopenigma, CopyFiles, CopyKernel, TvList, Lan
if not os.path.exists('%s/ImageBoot/%s/etc/init.d/rc.local' % (media, target)) and not os.path.exists('%s/ImageBoot/%s/etc/rc.local' % (media, target)) :
if os.path.exists('%s/ImageBoot/%s/etc/init.d' % (media, target)):
cmd = 'ln -s %sImageBoot/%s/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh %sImageBoot/%s/etc/rcS.d/S99neo.local' % (media,
target,
media,
target)
# cmd = 'ln -s %sImageBoot/%s/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh %sImageBoot/%s/etc/rcS.d/S99neo.local' % (media,
# target,
# media,
# target)
cmd = 'cp -r /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh %sImageBoot/%s/etc/rcS.d/S99neo.local' % (media, target)
rc = os.system(cmd)
cmd = 'chmod 0755 %s/ImageBoot/%s/etc/rcS.d/S99neo.local' % (media, target)
rc = os.system(cmd)
elif not os.path.exists('%s/ImageBoot/%s/etc/init.d' % (media, target)):
os.system('echo "/etc/init.d not found."')
os.system('echo "Copied file neo_userscript.sh"')
if not os.path.exists('' + getNeoLocation() + 'ImageBoot/.without_copying'):
if not os.path.exists('%s/ImageBoot/%s/etc/enigma2' % (media, target)):
@@ -1055,6 +1059,8 @@ def NEOBootExtract(source, target, ZipDelete, BlackHole):
os.chdir('ultimo4k')
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/duo4k'):
os.chdir('duo4k')
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/duo4kse'):
os.chdir('duo4kse')
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/zero4k'):
os.chdir('zero4k')
if os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/uno4kse'):
@@ -1144,7 +1150,7 @@ def NEOBootExtract(source, target, ZipDelete, BlackHole):
rc = os.system(cmd)
else:
os.system('echo "NeoBoot wykryĹ‚ bĹÄ…d !!! Prawdopodobnie brak ubi_reader lub nandsim."')
os.system('echo "NeoBoot wykrył błąd !!! Prawdopodobnie brak ubi_reader lub nandsim."')
#ARM
elif getCPUtype() == 'ARMv7':
@@ -1247,6 +1253,10 @@ def NEOBootExtract(source, target, ZipDelete, BlackHole):
os.system('echo "Please wait. System installation VuPlus Duo4k."')
cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/vuplus/duo4k/rootfs.tar.bz2; tar -jxvf ' + getNeoLocation() + 'ImagesUpload/vuplus/duo4k/rootfs.tar.bz2 -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1'
rc = os.system(cmd)
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/vuplus/duo4kse'):
os.system('echo "Please wait. System installation VuPlus Duo4kse."')
cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/vuplus/duo4kse/rootfs.tar.bz2; tar -jxvf ' + getNeoLocation() + 'ImagesUpload/vuplus/duo4kse/rootfs.tar.bz2 -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1'
rc = os.system(cmd)
elif os.path.exists('' + getNeoLocation() + 'ImagesUpload/update/revo4k'):
os.system('echo "Please wait. System installation Revo4k."')
cmd = 'chmod 777 ' + getNeoLocation() + 'ImagesUpload/update/revo4k/rootfs.tar.bz2; tar -jxvf ' + getNeoLocation() + 'ImagesUpload/update/revo4k/rootfs.tar.bz2 -C ' + getNeoLocation() + 'ImageBoot/' + target + ' > /dev/null 2>&1'
@@ -1374,7 +1384,7 @@ def NEOBootExtract(source, target, ZipDelete, BlackHole):
rc = os.system(cmd)
else:
os.system('echo "NeoBoot wykryĹ‚ dĹÄ…d!!! Prawdopodobnie brak pliku instalacyjnego."')
os.system('echo "NeoBoot wykrył dłąd!!! Prawdopodobnie brak pliku instalacyjnego."')
if BlackHole == 'True':

View File

@@ -9,6 +9,17 @@ from Tools.Directories import fileExists, SCOPE_PLUGINS
def fileCheck(f, mode = 'r'):
return fileExists(f, mode) and f
#check imageATV
def getImageATv():
atvimage='UNKNOWN'
if os.path.exists('/etc/issue.net'):
with open('/etc/issue.net', 'r') as f:
lines = f.read()
f.close()
if lines.find('openatv') != -1:
atvimage='okfeedCAMatv'
return atvimage
#check install
def getNeoLocation():
locatino='UNKNOWN'

View File

@@ -22,7 +22,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.path import dirname, isdir, isdir as os_isdir
from enigma import eTimer
from stbbranding import getNeoLocation, getImageNeoBoot, getKernelVersionString, getBoxHostName, getCPUtype, getBoxVuModel, getTunerModel, getCPUSoC
from stbbranding import getNeoLocation, getImageNeoBoot, getKernelVersionString, getBoxHostName, getCPUtype, getBoxVuModel, getTunerModel, getCPUSoC, getImageATv
import os
import time
import sys
@@ -55,8 +55,8 @@ def getKernelVersion():
try:
return open('/proc/version', 'r').read().split(' ', 4)[2].split('-', 2)[0]
except:
return _('unknown')
return _('unknown')
def getCPUtype():
cpu='UNKNOWN'
if os.path.exists('/proc/cpuinfo'):
@@ -189,11 +189,15 @@ class MBTools(Screen):
self.list.append (res)
self ['list']. list = self.list
res = (_ ('Supported sat tuners'), png, 16)
res = (_ ('Add cams to feed for OpenATV '), png, 16)
self.list.append (res)
self ['list']. list = self.list
res = (_ ('NeoBoot Information'), png, 17)
res = (_ ('Supported sat tuners'), png, 17)
self.list.append (res)
self ['list']. list = self.list
res = (_ ('NeoBoot Information'), png, 18)
self.list.append (res)
self ['list']. list = self.list
@@ -234,9 +238,11 @@ class MBTools(Screen):
pass
if self.sel == 15 and self.session.open(DeletingLanguages):
pass
if self.sel == 16 and self.session.open(TunerInfo):
if self.sel == 16 and self.session.open(ATVcamfeed):
pass
if self.sel == 17 and self.session.open(MultiBootMyHelp):
if self.sel == 17 and self.session.open(TunerInfo):
pass
if self.sel == 18 and self.session.open(MultiBootMyHelp):
pass
class MBBackup(Screen):
@@ -1159,6 +1165,8 @@ class SkinChange(Screen):
system('cp -r ' + LinkNeoBoot + '/images/solo4k.png ' + LinkNeoBoot + '/images/box.png')
elif getBoxHostName() == 'vuduo4k':
system('cp -r ' + LinkNeoBoot + '/images/duo4k.png ' + LinkNeoBoot + '/images/box.png')
elif getBoxHostName() == 'vuduo4kse':
system('cp -r ' + LinkNeoBoot + '/images/duo4k.png ' + LinkNeoBoot + '/images/box.png')
elif getBoxHostName() == 'vuuno4k':
system('cp -r ' + LinkNeoBoot + '/images/uno4k.png ' + LinkNeoBoot + '/images/box.png')
elif getBoxHostName() == 'vuuno4kse':
@@ -1360,6 +1368,9 @@ class InternalFlash(Screen):
if getBoxVuModel() == 'duo4k':
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p9 /media/InternalFlash')
if getBoxVuModel() == 'duo4kse':
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p9 /media/InternalFlash')
if getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p5 /media/InternalFlash')
@@ -1431,6 +1442,35 @@ class DeletingLanguages(Screen):
self.close()
class ATVcamfeed(Screen):
__module__ = __name__
skin = """<screen name="ATV add cam feed" title="Password change" position="center,center" size="700,300" flags="wfNoBorder">
<widget name="lab1" position="20,20" size="660,210" font="baslk;25" halign="center" valign="center" transparent="1" />
<ePixmap position="200,250" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
<widget name="key_red" position="250,250" zPosition="2" size="280,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" foregroundColor="red" />
</screen>"""
def __init__(self, session):
Screen.__init__(self, session)
self['lab1'] = Label(_('Add Cam dowloand from feed.'))
self['key_red'] = Label(_('Start'))
self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'back': self.close,
'red': self.addcamatv})
def addcamatv(self):
if getImageATv() == 'okfeedCAMatv':
cmd = "echo -e '\n\n%s '" % _('NeoBoot - ATV add cam feed ...')
cmd1 = 'wget -O - -q http://updates.mynonpublic.com/oea/feed | bash'
self.session.open(Console, _('NeoBoot: Cams feed add...'), [cmd, cmd1])
elif getImageATv() != 'okfeedCAMatv':
self.myClose(_('Sorry, is not image Open ATV !!!'))
def myClose(self, message):
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
self.close()
class TunerInfo(Screen):
__module__ = __name__
skin = """<screen name="TunerInfo" title="NeoBoot - Sat Tuners " position="center,center" size="700,300" flags="wfNoBorder">

View File

@@ -3,7 +3,11 @@
# here you can add your own command to perform
# line - Checking internet connection by @j00zek thank you
IMAGEKATALOG=ImageBoot
IMAGEKATALOG=ImageBoot
if [ -e /.control_boot_new_image ] ; then
passwd -d root
fi
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ] ; then
mkdir `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
@@ -41,17 +45,21 @@ if [ $? -gt 0 ]; then
fi
fi
if [ -e /%1 ] ; then
rm -f /%1
fi
# echo " dns-nameservers 1.1.1.1 " >> /etc/network/interfaces
else
echo "_____!!!(github server available)!!!_____"
fi
if [ -e /%1 ] ; then
rm -f /%1
fi
if [ -e /home/root/%1 ] ; then
rm -f /home/root/%1
fi
echo "!!!_____([NEOBOOT] used userscript)_____!!! "
echo ok
exit 0

View File

@@ -4,9 +4,9 @@
# Copyright (c) , gutosie license
#
# Redystrybucja wersji programu i dokonywania modyfikacji JEST DOZWOLONE, pod warunkiem zachowania niniejszej informacji o prawach autorskich.
# Autor NIE ponosi JAKIEJKOLWIEK odpowiedzialności za skutki użtkowania tego programu oraz za wykorzystanie zawartych tu informacji.
# Autor NIE ponosi JAKIEJKOLWIEK odpowiedzialności za skutki użtkowania tego programu oraz za wykorzystanie zawartych tu informacji.
# Modyfikacje przeprowadzasz na wlasne ryzyko!!!
# O wszelkich zmianach prosze poinformować na http://all-forum.cba.pl w temacie pod nazwa -#[NEOBOOT]#-
# O wszelkich zmianach prosze poinformować na http://all-forum.cba.pl w temacie pod nazwa -#[NEOBOOT]#-
# This text/program is free document/software. Redistribution and use in
# source and binary forms, with or without modification, ARE PERMITTED provided
@@ -50,8 +50,8 @@ if fileExists('/etc/vtiversion.info') and fileExists('/.multinfo'):
else:
from files.neoconsole import Console
PLUGINVERSION = '9.02'
UPDATEVERSION = '9.05'
PLUGINVERSION = '9.03'
UPDATEVERSION = '9.08'
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
try:
@@ -541,7 +541,7 @@ class NeoBootInstallation(Screen):
os.system('opkg install mtd-utils-ubifs')
# ARM - OctagonSF4008 - DM900 - Zgemma h7S - Octagon sf 8008 - AX HD60 4K #gbquad4k arm , #osmio4k arm, #Zgemma h9 arm, #Zgemma h7S arm , #Octagon SF4008
if getBoxHostName() == 'ustym4kpro' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getBoxHostName() == 'zgemmah7' or getBoxHostName() == 'ax51' or getBoxHostName() == 'tmtwin4k' or getBoxHostName() == 'anadol4k' or getBoxHostName() == 'protek4k' or getBoxHostName() == 'maxytecmulti' or getBoxHostName() == 'force3uhd' or getBoxHostName() == 'viper4k' or getBoxHostName() == 'dm920' or getBoxHostName() == 'et1x000' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getBoxHostName == 'osmio4k' or getBoxHostName == 'osmio4kplus' or getBoxHostName() == 'zgemmah9s' or getBoxHostName() == 'h9combo' or getBoxHostName() == 'h10' or getBoxHostName() == 'ax60' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900' and getBoxHostName() != 'vuultimo4k' and getBoxHostName() != 'vuuno4k' and getBoxHostName() != 'vusolo4k' and getBoxHostName() != 'vuuno4kse' and getBoxHostName() != 'vuultimo4k' and getBoxHostName() != 'vuduo4k' and getBoxHostName() != 'vuzero4k':
if getBoxHostName() == 'ustym4kpro' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getBoxHostName() == 'zgemmah7' or getBoxHostName() == 'ax51' or getBoxHostName() == 'tmtwin4k' or getBoxHostName() == 'anadol4k' or getBoxHostName() == 'protek4k' or getBoxHostName() == 'maxytecmulti' or getBoxHostName() == 'force3uhd' or getBoxHostName() == 'viper4k' or getBoxHostName() == 'dm920' or getBoxHostName() == 'et1x000' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getBoxHostName == 'osmio4k' or getBoxHostName == 'osmio4kplus' or getBoxHostName() == 'zgemmah9s' or getBoxHostName() == 'h9combo' or getBoxHostName() == 'h10' or getBoxHostName() == 'ax60' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900' and getBoxHostName() != 'vuultimo4k' and getBoxHostName() != 'vuuno4k' and getBoxHostName() != 'vusolo4k' and getBoxHostName() != 'vuuno4kse' and getBoxHostName() != 'vuultimo4k' and getBoxHostName() != 'vuduo4k' and getBoxHostName() != 'duo4kse' and getBoxHostName() != 'vuzero4k':
os.system('cp -f ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init; mv ' + LinkNeoBoot + '/tmpfiles/runpy/arm_run.py ' + LinkNeoBoot + '/run.py; cd')
#VUPLUS ARM
elif getCPUtype() == 'ARMv7' and getBoxHostName() != 'ustym4kpro':
@@ -552,6 +552,15 @@ class NeoBootInstallation(Screen):
os.system('dd if=/dev/mmcblk0p6 of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()))
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/vuDuo4Kmmcblk0p6.sh ' + LinkNeoBoot + '/files/kernel.sh; cd')
elif getCPUtype() == 'ARMv7' and getBoxHostName() != 'ustym4kpro' and getBoxHostName() != 'vuultimo4k':
if getCPUSoC() == '7444s' or getBoxHostName() == 'vuduo4kse':
os.system('cd ' + LinkNeoBoot + '/' )
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; cp -Rf ' + LinkNeoBoot + '/bin/neoinitarmvuDuo4k /sbin/neoinitarmvu; mv ' + LinkNeoBoot + '/tmpfiles/runpy/duo4kse_run.py ' + LinkNeoBoot + '/run.py; cd')
os.system('chmod 755 /sbin/neoinitarm; chmod 755 /sbin/neoinitarmvu')
os.system('dd if=/dev/mmcblk0p6 of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()))
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/vuDuo4Ksemmcblk0p6.sh ' + LinkNeoBoot + '/files/kernel.sh; cd')
elif getCPUSoC() == '72604' or getBoxHostName() == 'vuzero4k':
os.system('cd ' + LinkNeoBoot + '/' )
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; cp -Rf ' + LinkNeoBoot + '/bin/neoinitarmvu /sbin/neoinitarmvu; cd')
@@ -559,10 +568,10 @@ class NeoBootInstallation(Screen):
os.system('dd if=/dev/mmcblk0p4 of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()))
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/vuZero4Kmmcblk0p4.sh ' + LinkNeoBoot + '/files/kernel.sh; mv ' + LinkNeoBoot + '/tmpfiles/runpy/zero4k_run.py ' + LinkNeoBoot + '/run.py; cd')
elif getCPUSoC() or getBoxHostName() == ['7444s',
elif getBoxHostName() != 'vuduo4kse' and getCPUSoC() or getBoxHostName() == ['7444s',
'7252s',
'7376',
'vuultimo4k',
'vuultimo4k',
'vuuno4k',
'vusolo4k',
'vuuno4kse'] :
@@ -802,10 +811,11 @@ class NeoBootImageChoose(Screen):
if not fileExists('/.control_ok'):
if fileExists('/.control_boot_new_image'):
os.system('/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/userscript.sh; rm -f /.control_boot_new_image; echo "Image uruchomione OK\nNie kasuj tego pliku. \n\nImage started OK\nDo not delete this file." > /.control_ok ')
os.system('rm -f /.control_boot_new_image; echo "Image uruchomione OK\nNie kasuj tego pliku. \n\nImage started OK\nDo not delete this file." > /.control_ok ')
if not fileExists('/.control_boot_new_image'):
os.system('echo "Image uruchomione OK\nNie kasuj tego pliku. \n\nImage started OK\nDo not delete this file." > /.control_ok')
self.list = []
self.setTitle(' NeoBoot %s - Menu' % PLUGINVERSION + ' ' + 'Ver. update: %s' % UPDATEVERSION)
self['device_icon'] = Pixmap()
@@ -1464,5 +1474,3 @@ def Plugins(**kwargs):
return [PluginDescriptor(name='NeoBoot', description='NeoBoot', where=PluginDescriptor.WHERE_MENU, fnc=menu), PluginDescriptor(name='NeoBoot', description=_('Installing multiple images'), icon='neo.png', where=PluginDescriptor.WHERE_PLUGINMENU, fnc=main)]
####################### _(-_-)_ gutosie _(-_-)_ #######################

51
NeoBoot/stbinfo Normal file
View File

@@ -0,0 +1,51 @@
Wspierane tunery satelitarne:
Ultimo4k : 7444s
Solo4k : 7376
Zero 4K : 72604
Duo4k : 7278
Duo4kse : 7444s
Uno4K : 7252s
Uno4kSE : 7252s
Ultimo : 7405
Uno : 7405
Duo : 7335
Duo2 : 7424
Zero : 7362
Solo : 7325
Solose : 7241
Solose-v2 : 7241
Solo2 : 7356
Formuler F1 : bcm7356
Formuler F3 : 7362
Miraclebox MBmini : bcm7358
Miraclebox Micro : bcm7362
Miraclebox Ultra : bcm7424
Octagon Sf8008 : 3798mv200
Octagon SF4008 : bcm7251
Zgemma h7S : bcm7251s
Zgemma H9S : hi3798mv200
AX HD60 4K : hi3798mv200
OSmini : BCM7362
atemio6000 : bcm7362
gbquad4k : bcm7252s
ustym4kpro: : 3798mv200
GI ET-11000 4K : bcm7251
AX HD51 4K : bcm7251s
viper4k
osmio4k
ax60
sf8008
sf4008
et1x000
dm920
ax51
gbquad4k
ustym4kpro
dm900
tmtwin4k
anadol4k
protek4k
maxytecmulti
force3uhd

View File

@@ -43,7 +43,7 @@ class StartImage(Screen):
\n\t\t\t<ePixmap position="491, 673" zPosition="-2" size="365, 160" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/matrixhd.png" />
<widget source="list" render="Listbox" position="20, 171" size="1194, 290" scrollbarMode="showOnDemand">\n\t\t\t\t<convert type="TemplatedMultiContent">
\n \t\t{"template": [
\n \t\t\tMultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),
\n \t\t\tMultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_CENTER|RT_VALIGN_CENTER, text = 0),
\n \t\t\tMultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1),
\n \t\t\t],
\n \t\t\t"fonts": [gFont("Regular", 40)],\n \t\t\t"itemHeight": 66\n \t\t}
@@ -144,7 +144,7 @@ class StartImage(Screen):
elif fileExists('/.multinfo'):
if not fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT - REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
cmd1 = 'dd if=' + getNeoLocation() + 'ImagesUpload/.kernel/flash-kernel-' + getBoxHostName() + '.bin of=/dev/mmcblk0p1; cd /media/InternalFlash; ln -sf "neoinitarm" "/media/InternalFlash/sbin/init" ; sleep 2; reboot -dfhi '
cmd1 = 'dd if=' + getNeoLocation() + 'ImagesUpload/.kernel/flash-kernel-' + getBoxHostName() + '.bin of=/dev/mmcblk0p6; cd /media/InternalFlash; ln -sf "neoinitarm" "/media/InternalFlash/sbin/init" ; sleep 2; reboot -dfhi '
elif fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT - REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')

View File

@@ -0,0 +1,159 @@
# -*- coding: utf-8 -*-
#from __init__ import _
from Plugins.Extensions.NeoBoot.__init__ import _
from Plugins.Extensions.NeoBoot.files.stbbranding import getNeoLocation, getKernelVersionString, getKernelImageVersion, getCPUtype, getCPUSoC, getImageNeoBoot, getBoxVuModel, getBoxHostName, getTunerModel
from enigma import getDesktop
from enigma import eTimer
from Screens.Screen import Screen
from Screens.MessageBox import MessageBox
from Screens.ChoiceBox import ChoiceBox
from Screens.VirtualKeyBoard import VirtualKeyBoard
from Screens.Standby import TryQuitMainloop
from Components.About import about
from Components.Sources.List import List
from Components.Button import Button
from Components.ActionMap import ActionMap, NumberActionMap
from Components.GUIComponent import *
from Components.MenuList import MenuList
from Components.Input import Input
from Components.Label import Label
from Components.ProgressBar import ProgressBar
from Components.ScrollLabel import ScrollLabel
from Components.Pixmap import Pixmap, MultiPixmap
from Components.config import *
from Components.ConfigList import ConfigListScreen
from Tools.LoadPixmap import LoadPixmap
from Tools.Directories import fileCheck, fileExists, pathExists, createDir, resolveFilename, SCOPE_PLUGINS
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
import os
import time
if fileCheck('/etc/vtiversion.info'):
from Screens.Console import Console
elif not fileCheck('/etc/vtiversion.info'):
from files.neoconsole import Console
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
class StartImage(Screen):
screenwidth = getDesktop(0).size().width()
if screenwidth and screenwidth == 1920:
skin = """<screen position="center, center" size="1241, 850" title="NeoBoot">
\n\t\t\t<ePixmap position="491, 673" zPosition="-2" size="365, 160" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/matrixhd.png" />
<widget source="list" render="Listbox" position="20, 171" size="1194, 290" scrollbarMode="showOnDemand">\n\t\t\t\t<convert type="TemplatedMultiContent">
\n \t\t{"template": [
\n \t\t\tMultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_CENTER|RT_VALIGN_CENTER, text = 0),
\n \t\t\tMultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1),
\n \t\t\t],
\n \t\t\t"fonts": [gFont("Regular", 40)],\n \t\t\t"itemHeight": 66\n \t\t}
\n \t\t</convert>\n\t\t</widget>
\n <widget name="label1" position="21, 29" zPosition="1" size="1184, 116" font="Regular;35" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="red" />
\n\t\t <widget name="label2" position="22, 480" zPosition="-2" size="1205, 168" font="Regular;35" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="red" />
\n\t\t </screen>"""
else:
skin = """<screen position="center, center" size="835, 500" title="NeoBoot">
\n\t\t\t <ePixmap position="0,0" zPosition="-1" size="835,500" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/frame835x500.png" />
<widget source="list" render="Listbox" position="16, 150" size="800, 40" selectionPixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/listselection800x35.png" scrollbarMode="showOnDemand">
\n\t\t\t\t<convert type="TemplatedMultiContent">
\n \t\t{"template": [
\n \t\t\tMultiContentEntryText(pos = (180, 0), size = (520, 36), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),
\n \t\t\tMultiContentEntryPixmapAlphaTest(pos = (4, 2), size = (36, 36), png = 1),
\n \t\t\t],\n \t\t\t"fonts": [gFont("Regular", 22)],
\n \t\t\t"itemHeight": 35\n \t\t}\n \t\t</convert>
\n\t\t</widget>\n<widget name="label1" font="Regular; 26" position="15, 70" size="803, 58" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00cc99" />
<widget name="label2" position="40, 232" zPosition="2" size="806, 294" font="Regular;25" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00cc99" />
\n\t\t </screen>"""
__module__ = __name__
def __init__(self, session):
Screen.__init__(self, session)
self.list = []
self['list'] = List(self.list)
self.select()
self['actions'] = ActionMap(['WizardActions', 'ColorActions'], {'ok': self.KeyOk,
'back': self.close})
self['label1'] = Label(_('Start the chosen system now ?'))
self['label2'] = Label(_('Select OK to run the image.'))
def select(self):
self.list = []
mypath = '' + LinkNeoBoot + ''
if not fileExists(mypath + 'icons'):
mypixmap = '' + LinkNeoBoot + '/images/ok.png'
png = LoadPixmap(mypixmap)
res = (_('OK Start image...'), png, 0)
self.list.append(res)
self['list'].list = self.list
def KeyOk(self):
if getImageNeoBoot() != 'Flash':
os.system('rm -rf %sImageBoot/%s/usr/bin/enigma2_pre_start.sh' % ( getNeoLocation(), getImageNeoBoot()))
self.StartImageInNeoBoot()
else:
os.system('rm -rf %sImageBoot/%s/usr/bin/enigma2_pre_start.sh' % ( getNeoLocation(), getImageNeoBoot()))
self.StartImageInNeoBoot()
def StartImageInNeoBoot(self):
if getImageNeoBoot() != 'Flash':
if fileExists('%sImageBoot/%s/.control_ok' % ( getNeoLocation(), getImageNeoBoot())):
system('touch /tmp/.control_ok ')
else:
system('touch %sImageBoot/%s/.control_boot_new_image ' % ( getNeoLocation(), getImageNeoBoot() ))
if fileExists('/.multinfo') and getCPUtype() == 'ARMv7':
if getBoxVuModel() == 'duo4kse':
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p9 /media/InternalFlash')
system('chmod 755 ' + LinkNeoBoot + '/files/kernel.sh')
self.sel = self['list'].getCurrent()
if self.sel:
self.sel = self.sel[2]
if self.sel == 0:
if fileExists('/media/InternalFlash/etc/init.d/neobootmount.sh'):
os.system('rm -f /media/InternalFlash/etc/init.d/neobootmount.sh;')
#################_____ARM____##########################
#VUPLUS ARM - Duo4kse vu_mmcblk0p6.sh
if getCPUSoC() == '7444s' or getBoxHostName() == 'vuduo4kse' and getBoxHostName() != 'vuultimo4k' :
if not fileExists('%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()) ):
mess = (_('Error - in the location %sImagesUpload/.kernel/ \nkernel file not found flash-kernel-%s.bin') % (getNeoLocation(), getBoxHostName()) )
self.session.open(MessageBox, mess, MessageBox.TYPE_INFO)
else:
if getImageNeoBoot() == 'Flash':
if fileExists('/.multinfo'):
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT - REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
cmd1 = 'cd /media/InternalFlash; ln -sf "init.sysvinit" "/media/InternalFlash/sbin/init"; ' + LinkNeoBoot + '/files/kernel.sh '
elif not fileExists('/.multinfo'):
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT - REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
cmd1 = 'sleep 5; ln -sf "init.sysvinit" "/sbin/init"; reboot -dfhi'
elif getImageNeoBoot() != 'Flash':
if not fileExists('/.multinfo'):
if not fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT - REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
cmd1 = 'sleep 5; ln -sfn /sbin/neoinitarm /sbin/init; /etc/init.d/reboot'
elif fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT - REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
cmd1 = 'ln -sfn /sbin/neoinitarmvu /sbin/init; ' + LinkNeoBoot + '/files/kernel.sh '
elif fileExists('/.multinfo'):
if not fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT - REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
cmd1 = 'dd if=' + getNeoLocation() + 'ImagesUpload/.kernel/flash-kernel-' + getBoxHostName() + '.bin of=/dev/mmcblk0p6; cd /media/InternalFlash; ln -sf "neoinitarm" "/media/InternalFlash/sbin/init" ; sleep 2; reboot -dfhi '
elif fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT - REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
cmd1 = 'cd /media/InternalFlash; ln -sf "neoinitarmvu" "/media/InternalFlash/sbin/init"; ' + LinkNeoBoot + '/files/kernel.sh '
self.session.open(Console, _('NeoBoot ARM '), [cmd, cmd1])
self.close()
else:
os.system('echo "Flash " >> ' + getNeoLocation() + 'ImageBoot/.neonextboot')
self.messagebox = self.session.open(MessageBox, _('It looks like it that multiboot does not support this STB.'), MessageBox.TYPE_INFO, 8)
self.close()

View File

@@ -131,7 +131,7 @@ class StartImage(Screen):
elif fileExists('/.multinfo'):
if not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
cmd = 'flash_eraseall /dev/mtd2; sleep 2; nandwrite -p /dev/mtd2 %sImagesUpload/.kernel/%s.vmlinux.gz; /etc/init.d/reboot' % getNeoLocation(), getBoxHostName()
elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getImageNeoBoot(), getBoxHostName())):
elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
cmd = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
self.session.open(Console, _('NeoBoot MIPS....'), [cmd])

View File

@@ -0,0 +1,120 @@
#!/bin/sh
#script - gutosie
if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
PL=1
fi
if [ -f /proc/stb/info/vumodel ]; then
VUMODEL=$( cat /proc/stb/info/vumodel )
fi
if [ -f /proc/stb/info/boxtype ]; then
BOXTYPE=$( cat /proc/stb/info/boxtype )
fi
if [ -f /proc/stb/info/chipset ]; then
CHIPSET=$( cat /proc/stb/info/chipset )
fi
if [ -f /tmp/zImage ]; then
rm -f /tmp/zImage
fi
KERNEL=`uname -r`
IMAGE=ImageBoot
IMAGENEXTBOOT=/ImageBoot/.neonextboot
NEOBOOTMOUNT=$( cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location)
BOXNAME=$( cat /etc/hostname)
UPLOAD=ImagesUpload
if [ -f $NEOBOOTMOUNT$IMAGENEXTBOOT ]; then
TARGET=`cat $NEOBOOTMOUNT$IMAGENEXTBOOT`
else
TARGET=Flash
fi
echo "NEOBOOT is booting image from " $TARGET
if [ $VUMODEL = "duo4kse" ] ; then
if [ $TARGET = "Flash" ]; then
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p6......" || echo "Instaling kernel bin file /dev/mmcblk0p6... "
if [ -e /.multinfo ]; then
cd /media/InternalFlash; ln -sfn /sbin/init.sysvinit /media/InternalFlash/sbin/init
if [ -e $NEOBOOTMOUNT$UPLOAD/.kernel/flash-kernel-$BOXNAME.bin ] ; then
if [ -d /proc/stb ] ; then
dd if=$NEOBOOTMOUNT$UPLOAD/.kernel/flash-kernel-$BOXNAME.bin of=/dev/mmcblk0p6
fi
echo "Boot - Flash. "
echo "Start image Flash z dysku hdd lub usb za 5 sekund RESTART...; \n\n..................._REBOOT_..................."
fi
elif [ ! -e /.multinfo ]; then
if [ -e $NEOBOOTMOUNT$UPLOAD/.kernel/flash-kernel-$BOXNAME.bin ] ; then
[ $PL ] && echo "Instalacja pliku kernel bin..." || echo "Instaling kernel bin file "
if [ -d /proc/stb ] ; then
dd if=$NEOBOOTMOUNT$UPLOAD/.kernel/flash-kernel-$BOXNAME.bin conv=noerror conv=sync of=/dev/mmcblk0p6
fi
echo "Start-restart Flash image..."
echo "Reboot image Flash za 5 sekund RESTART...; \n\n...................=REBOOT=..................."
fi
fi
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
[ $PL ] && echo " Zainstalowano kernel image " $TARGET " " || echo " Installed kernel image - "$TARGET" "
cat /dev/mmcblk0p6 | grep "kernel"
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
echo "STB: " $CHIPSET " "$BOXNAME" "$VUMODEL" "
echo "...............shutdown now...............";
sync && echo 3 > /proc/sys/vm/drop_caches
sleep 5
echo -n "Rebooting... "
reboot -d -f
else
if [ $TARGET != "Flash" ]; then
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
if [ -e /.multinfo ] ; then
INFOBOOT=$( cat /.multinfo )
if [ $TARGET = $INFOBOOT ] ; then
echo "NEOBOOT is booting image " $TARGET
else
sleep 2
cp -f $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
echo "Instalacja kernel do /dev/mmcblk0p6..."
sleep 2
if [ -d /proc/stb ] ; then
dd if=/tmp/zImage of=/dev/mmcblk0p6
fi
echo "Start image z Flash..."
echo "Kernels for image " $TARGET " changed..."
echo "Start innego image z Flash za 5 sekund RESTART...... \n\n...................*REBOOT*..................."
fi
else
sleep 2
cp -fR $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
echo "Instalacja kernel bin do /dev/mmcblk0p6..."
sleep 2
if [ -d /proc/stb ] ; then
dd if=/tmp/zImage of=/dev/mmcblk0p6
fi
echo "Kernel dla potrzeb startu systemu " $TARGET " VU+ zmieniony."
echo "Start innego image z Flash za 5 sekund RESTART...... \n\n...................-REBOOT-..................."
fi
rm -f /tmp/zImage
cat /dev/mmcblk0p6 | grep "kernel"
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
echo "STB: " $CHIPSET " "$BOXNAME" "$VUMODEL" "
sync && echo 3 > /proc/sys/vm/drop_caches
sleep 5
echo "...............shutdown now..............."
echo -n "Rebooting... "
reboot -d -f
fi
fi
else
ln -sfn /sbin/init.sysvinit /sbin/init
echo "CHIPSET: " $CHIPSET " BOXNAME: "$BOXNAME" MODEL: "$VUMODEL" "
echo "$TARGET " > $NEOBOOTMOUNT/ImageBoot/.neonextboot
echo "Error - Nie wpierany model STB !!! "
exit 0
fi
exit 0

View File

@@ -1,2 +1,2 @@
9.05
9.08