Compare commits
45 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4862c0444c | ||
|
|
77ddc53c33 | ||
|
|
37beecea96 | ||
|
|
89b4bdbe6f | ||
|
|
8e1b0c751f | ||
|
|
d740371520 | ||
|
|
494ab6070c | ||
|
|
6e42a21ef0 | ||
|
|
3b9dfa151e | ||
|
|
7920b9cc24 | ||
|
|
b8c421f3e1 | ||
|
|
561c7d3978 | ||
|
|
767c1f43ce | ||
|
|
688c0b0a6f | ||
|
|
8f136eb189 | ||
|
|
b9d237f2ef | ||
|
|
1b0bc634d7 | ||
|
|
9a733ffe1f | ||
|
|
49b9cf1ca1 | ||
|
|
74efb17f9d | ||
|
|
91b8ff9d22 | ||
|
|
13c5421ed4 | ||
|
|
a8d26cbfee | ||
|
|
3e6d4adcfe | ||
|
|
f944c63ca7 | ||
|
|
eb55824c25 | ||
|
|
80de61ce65 | ||
|
|
c3aed90ecb | ||
|
|
97601b8764 | ||
|
|
c99ff99938 | ||
|
|
27bed75762 | ||
|
|
8fc7952fe9 | ||
|
|
4e57e1f12b | ||
|
|
0a7b20ef4e | ||
|
|
b911cbf027 | ||
|
|
008e262417 | ||
|
|
c3c5d38895 | ||
|
|
7ff36d8aad | ||
|
|
068f0f7a13 | ||
|
|
8602c4219e | ||
|
|
5a21a49c99 | ||
|
|
1969dc68f0 | ||
|
|
5540aa582c | ||
|
|
657b1da170 | ||
|
|
5b6b19fe35 |
@@ -9,7 +9,7 @@ PluginLanguagePath = 'Extensions/NeoBoot/locale'
|
||||
def localeInit():
|
||||
lang = language.getLanguage()[:2]
|
||||
os.environ['LANGUAGE'] = lang
|
||||
print '[NeoBoot] set language to ', lang
|
||||
# print '[NeoBoot] set language to ', lang
|
||||
gettext.bindtextdomain(PluginLanguageDomain, resolveFilename(SCOPE_PLUGINS, PluginLanguagePath))
|
||||
|
||||
|
||||
|
||||
322
NeoBoot/bin/neoinitmips
Normal file
322
NeoBoot/bin/neoinitmips
Normal 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
136
NeoBoot/bin/neoinitmipsvu
Normal 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
|
||||
6
NeoBoot/ex_init.py
Normal file
6
NeoBoot/ex_init.py
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
import sys, extract
|
||||
if len(sys.argv) < 14:
|
||||
pass
|
||||
else:
|
||||
extract.NEOBootMainEx(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5], sys.argv[6], sys.argv[7], sys.argv[8], sys.argv[9], sys.argv[10], sys.argv[11], sys.argv[12], sys.argv[13] , sys.argv[14])
|
||||
1426
NeoBoot/extract.py
Normal file
1426
NeoBoot/extract.py
Normal file
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,10 @@ from Tools.Directories import fileExists, pathExists, fileCheck
|
||||
from Tools.CList import CList
|
||||
from Components.SystemInfo import SystemInfo
|
||||
from Components.Console import Console
|
||||
from Task import LoggingTask
|
||||
try:
|
||||
from Task import LoggingTask
|
||||
except:
|
||||
from Components.Task import LoggingTask
|
||||
import Task
|
||||
from Screens.Screen import Screen
|
||||
from Components.ActionMap import ActionMap
|
||||
@@ -973,7 +976,10 @@ class HarddiskSetup(Screen):
|
||||
def hddConfirmed(self, confirmed):
|
||||
if not confirmed:
|
||||
return
|
||||
from Components.Task import job_manager
|
||||
try:
|
||||
from Task import job_manager
|
||||
except:
|
||||
from Components.Task import job_manager
|
||||
try:
|
||||
job = self.action()
|
||||
job_manager.AddJob(job, onSuccess=job_manager.popupTaskView)
|
||||
|
||||
@@ -89,8 +89,14 @@ class ManagerDevice(Screen):
|
||||
self.onShown.append(self.setWindowTitle)
|
||||
|
||||
def Format_ext3(self):
|
||||
from Harddisk import HarddiskSelection
|
||||
self.session.openWithCallback(self.updateList, HarddiskSelection)
|
||||
try:
|
||||
if fileExists('/etc/vtiversion.info') or fileExists('/etc/bhversion'):
|
||||
self.session.open(MessageBox, _("This option is available only from openpli or derivatives."), MessageBox.TYPE_INFO, timeout=10)
|
||||
else:
|
||||
from Harddisk import HarddiskSelection
|
||||
self.session.openWithCallback(self.updateList, HarddiskSelection)
|
||||
except:
|
||||
self.session.open(MessageBox, _("This option is available only from openpli or derivatives."), MessageBox.TYPE_INFO, timeout=10)
|
||||
|
||||
def Format_ext4(self):
|
||||
from Screens.HarddiskSetup import HarddiskSelection
|
||||
|
||||
16
NeoBoot/files/modulecheck.sh
Normal file
16
NeoBoot/files/modulecheck.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
#DESCRIPTION=This script by gutosie
|
||||
|
||||
opkg update
|
||||
opkg install --force-reinstall mtd-utils
|
||||
opkg install --force-reinstall mtd-utils-ubifs
|
||||
opkg install --force-reinstall mtd-utils-jffs2
|
||||
opkg install --force-reinstall kernel-module-nandsim
|
||||
opkg install --force-reinstall python-subprocess
|
||||
opkg install --force-reinstall python-argparse
|
||||
opkg install --force-reinstall curl
|
||||
opkg install --force-reinstall liblzo2-2
|
||||
opkg install --force-reinstall python-imaging
|
||||
opkg install --force-maintainer --force-reinstall --force-overwrite kernel-image
|
||||
opkg configure update-modules
|
||||
cd
|
||||
27
NeoBoot/files/neobackup.sh
Normal file
27
NeoBoot/files/neobackup.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
#script by gutosie
|
||||
|
||||
if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
|
||||
PL=1
|
||||
fi
|
||||
|
||||
IMAGE=ImageBoot
|
||||
LOCATIONBACKUP=CopyNEOBoot
|
||||
NEOBOOTMOUNT=$( cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location)
|
||||
TiME=$(date +"%Y%m%d_%H%M%S")
|
||||
UPDATEv=$(cat $NEOBOOTMOUNT/ImageBoot/.updateversion)
|
||||
NB=_NeoBoot_
|
||||
|
||||
if [ ! -e $NEOBOOTMOUNT$LOCATIONBACKUP ]; then
|
||||
mkdir $NEOBOOTMOUNT$LOCATIONBACKUP > /dev/null 2>&1
|
||||
/bin/tar -czf $NEOBOOTMOUNT/CopyNEOBoot/Copy_$UPDATEv$NB$TiME.tar.gz /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot*/
|
||||
echo " "
|
||||
[ $PL ] && echo "Kopia wtyczki neoboot o nazwie Copy_$UPDATEv$NB$TiME.tar.gz utworzono w:" $NEOBOOTMOUNT$LOCATIONBACKUP" " || echo "Copy named Copy_$UPDATEv$NB$TiME.tar.gz was created at location:" $NEOBOOTMOUNT$LOCATIONBACKUP" "
|
||||
echo " "
|
||||
else
|
||||
/bin/tar -czf $NEOBOOTMOUNT/CopyNEOBoot/Copy_$UPDATEv$NB$TiME.tar.gz /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot*/
|
||||
echo " "
|
||||
[ $PL ] && echo "Kopia wtyczki o nazwie Copy_$UPDATEv$NB$TiME.tar.gz utworzono w:" $NEOBOOTMOUNT$LOCATIONBACKUP" " || echo "Copy named Copy_$UPDATEv$NB$TiME.tar.gz was created at location:" $NEOBOOTMOUNT$LOCATIONBACKUP" "
|
||||
echo " "
|
||||
fi
|
||||
exit 0
|
||||
@@ -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'
|
||||
|
||||
@@ -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'):
|
||||
@@ -95,14 +95,13 @@ class BoundFunction:
|
||||
self.fnc(*self.args)
|
||||
|
||||
|
||||
# <ePixmap position="587,631" zPosition="-2" size="545,340" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/matrix.png" />
|
||||
class MBTools(Screen):
|
||||
if isFHD():
|
||||
skin = """<screen name="MBTools" position="70,93" size="910,938" title="NeoBoot tools">
|
||||
<eLabel position="20,68" size="890,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel position="20,935" size="890,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<ePixmap position="25,-1" size="45,65" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/updown.png" alphatest="on" />
|
||||
<eLabel backgroundColor="background" font="Regular; 30" foregroundColor="#00ff2525" position="293,2" size="275,57" text="Menu list NEOBoot" />
|
||||
<eLabel backgroundColor="background" font="baslk; 30" foregroundColor="yellow" position="293,2" size="275,57" text="Menu list NEOBoot" />
|
||||
<widget source="list" render="Listbox" position="20,75" size="885,847" scrollbarMode="showOnDemand">
|
||||
<convert type="TemplatedMultiContent">\n \t\t{"template": [\n \t\t\tMultiContentEntryText(pos = (50, 1), size = (920, 56), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),\n \t\t\tMultiContentEntryPixmapAlphaTest(pos = (6, 4), size = (66, 66), png = 1),\n \t\t\t],\n \t\t\t"fonts": [gFont("Regular", 35)],\n \t\t\t"itemHeight": 60\n \t\t}\n \t\t</convert>
|
||||
</widget>
|
||||
@@ -190,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
|
||||
|
||||
@@ -235,14 +238,16 @@ 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):
|
||||
if isFHD():
|
||||
skin = """ <screen name="MBBackup" title="Backup image from NeoBoot" position="center,center" size="850,750">
|
||||
skin = """ <screen name="MBBackupFHD" title="Backup image from NeoBoot" position="center,center" size="850,750">
|
||||
<widget name="lab1" position="17,5" size="819, 62" font="baslk;35" halign="center" valign="center" transparent="1" foregroundColor="#99FFFF" />
|
||||
<widget name="lab2" position="17,75" size="819,68" font="baslk;35" halign="center" valign="center" transparent="1" foregroundColor="#99FFFF" />
|
||||
<widget name="lab3" position="17,150" size="819,85" font="baslk;35" halign="center" valign="center" transparent="1" foregroundColor="#99FFFF" />
|
||||
@@ -250,10 +255,18 @@ class MBBackup(Screen):
|
||||
<convert type="StringList" font="Regular;35" />
|
||||
</widget>
|
||||
<ePixmap position="270,705" size="34, 34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="325,705" zPosition="2" size="280,35" font="baslk;30" halign="left" valign="center" backgroundColor="#f23d21" transparent="1" foregroundColor="#f23d21" />
|
||||
<widget name="key_red" position="325,705" zPosition="2" size="520,35" font="baslk;30" halign="left" valign="center" backgroundColor="#f23d21" transparent="1" foregroundColor="#f23d21" />
|
||||
</screen>"""
|
||||
else:
|
||||
skin = ' <screen position="center,center" size="700,550" title="Backup the image from NeoBoot">\n\t\t\n <widget name="lab1" position="20,20" size="660,30" font="Regular;24" halign="center" valign="center" transparent="1"/>\n\n <widget name="lab2" position="20,50" size="660,30" font="Regular;24" halign="center" valign="center" transparent="1"/>\n\n <widget name="lab3" position="20,100" size="660,30" font="Regular;22" halign="center" valign="center" transparent="1"/>\n \n <widget source="list" render="Listbox" position="40,130" zPosition="1" size="620,360" scrollbarMode="showOnDemand" transparent="1" >\n\t\t\t\n <convert type="StringList" />\n</widget>\n<ePixmap position="280,500" size="140,40" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/redcor.png" alphatest="on" zPosition="1" />\n\n <widget name="key_red" position="280,500" zPosition="2" size="140,40" font="Regular;20" halign="left" valign="center" backgroundColor="red" transparent="1" />\n\n </screen>'
|
||||
skin = """ <screen name="MBBackupHD" position="center,center" size="700,550" title="Backup the image from NeoBoot">
|
||||
<widget name="lab1" position="20,20" size="660,30" font="Regular;24" halign="center" valign="center" transparent="1" />
|
||||
<widget name="lab2" position="20,50" size="660,30" font="Regular;24" halign="center" valign="center" transparent="1" />
|
||||
<widget name="lab3" position="20,100" size="660,30" font="Regular;22" halign="center" valign="center" transparent="1" />
|
||||
<widget source="list" render="Listbox" position="40,141" zPosition="1" size="620,349" scrollbarMode="showOnDemand" transparent="1">\
|
||||
<convert type="StringList" />
|
||||
</widget>\n<ePixmap position="272,498" size="140,40" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/redcor.png" alphatest="on" zPosition="1" />
|
||||
<widget name="key_red" position="270,500" zPosition="2" size="390,40" font="Regular;20" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
</screen>"""
|
||||
|
||||
def __init__(self, session):
|
||||
Screen.__init__(self, session)
|
||||
@@ -375,15 +388,15 @@ class MBBackup(Screen):
|
||||
|
||||
class MBRestore(Screen):
|
||||
__module__ = __name__
|
||||
skin = """ <screen name="ReinstllNeoBoot2" title="Reinstll NeoBoot" position="center,center" size="850,750">
|
||||
skin = """ <screen name="ReinstllNeoBoot2" title="Reinstll NeoBoot" position="center,center" size="850,626">
|
||||
<widget name="lab1" position="20,15" size="820,50" font="baslk;30" halign="center" valign="center" transparent="1" foregroundColor="#00ffa500" />
|
||||
<widget source="list" render="Listbox" itemHeight="40" font="Regular;21" position="25,85" zPosition="1" size="815,600" scrollbarMode="showOnDemand" transparent="1">
|
||||
<widget source="list" render="Listbox" itemHeight="40" font="Regular;21" position="25,80" zPosition="1" size="815,464" scrollbarMode="showOnDemand" transparent="1">
|
||||
<convert type="StringList" font="Regular;35" />
|
||||
</widget>
|
||||
<ePixmap position="40,695" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<ePixmap position="530,695" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="85,695" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
<widget name="key_green" position="575,695" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="green" transparent="1" />
|
||||
<ePixmap position="40,570" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<ePixmap position="525,570" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="83,570" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
<widget name="key_green" position="579,570" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="green" transparent="1" />
|
||||
</screen>"""
|
||||
|
||||
def __init__(self, session):
|
||||
@@ -703,15 +716,15 @@ class ReinstllNeoBoot(Screen):
|
||||
|
||||
class ReinstllNeoBoot2(Screen):
|
||||
__module__ = __name__
|
||||
skin = """ <screen name="ReinstllNeoBoot2" title="Reinstll NeoBoot" position="center,center" size="850,750">
|
||||
skin = """ <screen name="ReinstllNeoBoot2" title="Reinstll NeoBoot" position="center,center" size="850,654">
|
||||
<widget name="lab1" position="20,15" size="820,50" font="baslk;30" halign="center" valign="center" transparent="1" foregroundColor="#00ffa500" />
|
||||
<widget source="list" render="Listbox" itemHeight="40" font="Regular;21" position="25,85" zPosition="1" size="815,600" scrollbarMode="showOnDemand" transparent="1">
|
||||
<widget source="list" render="Listbox" itemHeight="40" font="Regular;21" position="25,94" zPosition="1" size="815,494" scrollbarMode="showOnDemand" transparent="1">
|
||||
<convert type="StringList" font="Regular;35" />
|
||||
</widget>
|
||||
<ePixmap position="40,695" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<ePixmap position="530,695" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="85,695" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
<widget name="key_green" position="575,695" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="green" transparent="1" />
|
||||
<ePixmap position="40,600" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<ePixmap position="527,600" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="85,600" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
<widget name="key_green" position="575,600" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="green" transparent="1" />
|
||||
</screen>"""
|
||||
|
||||
def __init__(self, session):
|
||||
@@ -1152,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':
|
||||
@@ -1160,7 +1175,11 @@ class SkinChange(Screen):
|
||||
system('cp -r ' + LinkNeoBoot + '/images/zero4kse.png ' + LinkNeoBoot + '/images/box.png')
|
||||
elif getBoxHostName() == 'sf4008':
|
||||
system('cp -r ' + LinkNeoBoot + '/images/sf4008.png ' + LinkNeoBoot + '/images/box.png')
|
||||
|
||||
elif getBoxHostName() == 'ustym4kpro':
|
||||
system('cp -r ' + LinkNeoBoot + '/images/ustym4kpro.png ' + LinkNeoBoot + '/images/box.png')
|
||||
elif getBoxHostName() == 'h7' or getBoxHostName() == 'zgemmah7' :
|
||||
system('cp -r ' + LinkNeoBoot + '/images/zgmmah7.png ' + LinkNeoBoot + '/images/box.png')
|
||||
|
||||
cmd = "echo -e '\n\n%s '" % _('Please wait, NeoBot is working, skin change is progress...')
|
||||
cmd1 = 'rm -f ' +LinkNeoBoot+ '/usedskin.p*; sleep 2'
|
||||
cmd2 = 'sleep 2; cp -r ' + self.skindir + '/' + self.selectedskin + '/*.py ' +LinkNeoBoot+ '/usedskin.py'
|
||||
@@ -1179,16 +1198,7 @@ class SkinChange(Screen):
|
||||
# localfile2 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/usedskin.py'
|
||||
# temp_file2 = open(localfile2, 'w')
|
||||
# temp_file2.write(content.replace('selektor.png', 'slekvti.png'))
|
||||
# temp_file2.close()
|
||||
fail = '/usr/share/enigma2/CobaltFHD/skin.xml'
|
||||
f = open(fail, 'r')
|
||||
content = f.read()
|
||||
f.close()
|
||||
localfile2 = '/usr/share/enigma2/CobaltFHD/skin.xml'
|
||||
temp_file2 = open(localfile2, 'w')
|
||||
temp_file2.write(content.replace('NeoBootImageChoose', '#NeoBootImageChoose'))
|
||||
temp_file2.close()
|
||||
|
||||
# temp_file2.close()
|
||||
self.restareE2()
|
||||
else:
|
||||
self.restareE2()
|
||||
@@ -1206,13 +1216,13 @@ class SkinChange(Screen):
|
||||
|
||||
class BlocUnblockImageSkin(Screen):
|
||||
__module__ = __name__
|
||||
skin = """<screen name="Skin tool" title="Skin tool" position="529,158" size="856,779">
|
||||
skin = """<screen name="Skin tool" title="Skin tool" position="center,center" size="856,657">
|
||||
<widget name="lab1" position="20,5" size="820,130" font="baslk;30" halign="center" valign="center" transparent="1" foregroundColor="#00ffa500" />
|
||||
<widget source="list" render="Listbox" itemHeight="43" font="Regular;21" position="25,155" zPosition="1" size="815,484" scrollbarMode="showOnDemand" transparent="1">
|
||||
<widget source="list" render="Listbox" itemHeight="43" font="Regular;21" position="25,155" zPosition="1" size="815,430" scrollbarMode="showOnDemand" transparent="1">
|
||||
<convert type="StringList" font="Regular;43" />
|
||||
</widget>
|
||||
<ePixmap position="180,714" size="37,38" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="228,716" zPosition="2" size="611,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
<ePixmap position="172,609" size="37,38" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="224,611" zPosition="2" size="611,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
</screen>"""
|
||||
|
||||
def __init__(self, session):
|
||||
@@ -1237,6 +1247,14 @@ class BlocUnblockImageSkin(Screen):
|
||||
self['list'].list = imageslist
|
||||
|
||||
def deleteback(self):
|
||||
image = self['list'].getCurrent()
|
||||
self.delimage = image.strip()
|
||||
if fileExists(self.backupdir + '/' + self.delimage + '/skin.xml'):
|
||||
self.deleteback2()
|
||||
else:
|
||||
self.myClose(_('Sorry, not find skin neoboot.'))
|
||||
|
||||
def deleteback2(self):
|
||||
image = self['list'].getCurrent()
|
||||
if image:
|
||||
self.delimage = image.strip()
|
||||
@@ -1275,17 +1293,9 @@ class BlocUnblockImageSkin(Screen):
|
||||
else:
|
||||
self.close()
|
||||
|
||||
|
||||
|
||||
# else:
|
||||
# self.myClose(_('Sorry, There is no skin for a neoboot'))
|
||||
|
||||
# def myClose(self, message):
|
||||
# self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
||||
# self.close()
|
||||
|
||||
|
||||
|
||||
def myClose(self, message):
|
||||
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
||||
self.close()
|
||||
|
||||
|
||||
class InternalFlash(Screen):
|
||||
@@ -1325,7 +1335,7 @@ class InternalFlash(Screen):
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p4 /media/InternalFlash')
|
||||
|
||||
if os.path.exists('/proc/stb/info/boxtype'):
|
||||
if getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||
if getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getBoxHostName() == 'zgemmah7' :
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p3 /media/InternalFlash')
|
||||
|
||||
if os.path.exists('/proc/stb/info/boxtype'):
|
||||
@@ -1358,12 +1368,18 @@ 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')
|
||||
|
||||
#if getBoxHostName == 'osmio4k':
|
||||
#os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p5 /media/InternalFlash')
|
||||
|
||||
else:
|
||||
self.myClose(_('Your image flash cannot be mounted.'))
|
||||
|
||||
if fileExists('/media/InternalFlash/etc/init.d/neobootmount.sh'):
|
||||
os.system('rm -f /media/InternalFlash/etc/init.d/neobootmount.sh;')
|
||||
|
||||
@@ -1377,13 +1393,13 @@ class InternalFlash(Screen):
|
||||
|
||||
class DeletingLanguages(Screen):
|
||||
__module__ = __name__
|
||||
skin = """ <screen name="ReinstllNeoBoot2" title="Deleting Languages" position="center,center" size="850,750">
|
||||
<widget name="lab1" position="20,15" size="820,50" font="baslk;30" halign="center" valign="center" transparent="1" foregroundColor="#00ffa500" />
|
||||
<widget source="list" render="Listbox" itemHeight="40" font="Regular;21" position="25,85" zPosition="1" size="815,600" scrollbarMode="showOnDemand" transparent="1">
|
||||
skin = """ <screen name="DeletingLanguages" title="Deleting Languages" position="center,center" size="850,647">
|
||||
<widget name="lab1" position="20,73" size="820,50" font="baslk;30" halign="center" valign="center" transparent="1" foregroundColor="#00ffa500" />
|
||||
<widget source="list" render="Listbox" itemHeight="40" font="Regular;21" position="25,142" zPosition="1" size="815,416" scrollbarMode="showOnDemand" transparent="1">
|
||||
<convert type="StringList" font="Regular;35" />
|
||||
</widget>
|
||||
<ePixmap position="40,695" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="85,695" zPosition="2" size="250,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
<ePixmap position="107,588" size="34,34" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" alphatest="blend" zPosition="1" />
|
||||
<widget name="key_red" position="153,588" zPosition="2" size="368,35" font="baslk;30" halign="left" valign="center" backgroundColor="red" transparent="1" />
|
||||
</screen>"""
|
||||
|
||||
def __init__(self, session):
|
||||
@@ -1426,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">
|
||||
@@ -1489,8 +1534,6 @@ class MultiBootMyHelp(Screen):
|
||||
self['lab1'].setText(message)
|
||||
|
||||
|
||||
|
||||
|
||||
###______\\\\\\----for plugin----////_____###
|
||||
|
||||
class MyHelpNeo(Screen):
|
||||
|
||||
65
NeoBoot/files/userscript.sh
Normal file
65
NeoBoot/files/userscript.sh
Normal file
@@ -0,0 +1,65 @@
|
||||
#!/bin/sh
|
||||
# script gutosie
|
||||
# here you can add your own command to perform
|
||||
# line - Checking internet connection by @j00zek thank you
|
||||
|
||||
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`
|
||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
||||
echo "_(_________Start mountpoint location NEOBOOT_________)"
|
||||
fi
|
||||
|
||||
echo "_(Checking internet connection)..."
|
||||
ping -c 1 github.com 1>/dev/null 2>%1
|
||||
if [ $? -gt 0 ]; then
|
||||
echo -n "_(github server unavailable, update impossible)\n!!! network restart...!!! )"
|
||||
/etc/init.d/networking stop;
|
||||
echo "_____(stopping network connection)_____"
|
||||
sleep 1;
|
||||
/etc/init.d/networking start;
|
||||
echo "_____(start network connection)_____"
|
||||
sleep 5
|
||||
|
||||
if [ $? -gt 0 ]; then
|
||||
if [ -e /usr/bin/curl ]; then
|
||||
cd /tmp; curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt;
|
||||
cd /
|
||||
elif [ -e /usr/bin/wget ]; then
|
||||
wget https://raw.githubusercontent.com/gutosie/NeoBoot8/master/ver.txt -O /tmp/ver.txt
|
||||
cd /
|
||||
|
||||
fi
|
||||
if [ ! -f /tmp/ver.txt ] ; then
|
||||
/etc/init.d/networking stop;
|
||||
echo "_____(stopping network connection)_____"
|
||||
sleep 2;
|
||||
/etc/init.d/networking start;
|
||||
echo "_____(start network connection)_____"
|
||||
|
||||
fi
|
||||
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
|
||||
|
||||
BIN
NeoBoot/images/separator2.png
Normal file
BIN
NeoBoot/images/separator2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
BIN
NeoBoot/locale/en/LC_MESSAGES/NeoBoot.mo
Normal file
BIN
NeoBoot/locale/en/LC_MESSAGES/NeoBoot.mo
Normal file
Binary file not shown.
1362
NeoBoot/locale/en/LC_MESSAGES/NeoBoot.po
Normal file
1362
NeoBoot/locale/en/LC_MESSAGES/NeoBoot.po
Normal file
File diff suppressed because it is too large
Load Diff
BIN
NeoBoot/locale/it/LC_MESSAGES/NeoBoot.mo
Normal file
BIN
NeoBoot/locale/it/LC_MESSAGES/NeoBoot.mo
Normal file
Binary file not shown.
1354
NeoBoot/locale/it/LC_MESSAGES/NeoBoot.po
Normal file
1354
NeoBoot/locale/it/LC_MESSAGES/NeoBoot.po
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: NeoBoot\n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: 2020-05-11 13:57+0300\n"
|
||||
"PO-Revision-Date: 2020-05-16 10:53+0300\n"
|
||||
"Last-Translator: gutosie <Krzysio Gutosie>\n"
|
||||
"Language-Team: gutosie- GaduGadu nr. 5111900 <http://all-forum.cba.pl >\n"
|
||||
"Language: pl\n"
|
||||
@@ -2389,6 +2389,9 @@ msgstr "NeoBoot: lista wspieranych modeli STB."
|
||||
msgid "Run"
|
||||
msgstr "Uruchom"
|
||||
|
||||
msgid "Your image flash cannot be mounted."
|
||||
msgstr "Twoje oprogramowanie nie może być zamontowane."
|
||||
|
||||
msgid "Sorry you can delete only from the image Flash."
|
||||
msgstr "Przepraszamy, możesz usunąć tylko z poziomu wewnętrznego oprogramowania Flash."
|
||||
|
||||
@@ -2487,3 +2490,13 @@ msgid ""
|
||||
msgstr ""
|
||||
"Udanaj zabawy! q(-_-)p :) gutosie \n"
|
||||
"\n"
|
||||
|
||||
msgid "This option is available only from openpli or derivatives."
|
||||
msgstr "Ta opcja dostępna tylko z poziomu openpli lub pochodnych."
|
||||
|
||||
msgid ""
|
||||
"Do you really want to initialize the device?\n"
|
||||
"All data on the disk will be lost!"
|
||||
msgstr ""
|
||||
"Czy naprawdę chcesz zainicjować urządzenie?\n"
|
||||
"Wszystkie dane na dysku zostaną utracone!"
|
||||
|
||||
@@ -50,8 +50,8 @@ if fileExists('/etc/vtiversion.info') and fileExists('/.multinfo'):
|
||||
else:
|
||||
from files.neoconsole import Console
|
||||
|
||||
PLUGINVERSION = '9.00'
|
||||
UPDATEVERSION = '9.00'
|
||||
PLUGINVERSION = '9.03'
|
||||
UPDATEVERSION = '9.08'
|
||||
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
|
||||
try:
|
||||
@@ -65,6 +65,17 @@ try:
|
||||
except:
|
||||
print 'ERROR INSERTING FONT'
|
||||
|
||||
def neoTranslator():
|
||||
neolang = ''
|
||||
usedlang = open('/etc/enigma2/settings', 'r')
|
||||
lang = 'config.osd.language=pl_PL'
|
||||
local = usedlang.read().find(lang)
|
||||
if local != -1:
|
||||
neolang = 'islangPL'
|
||||
else:
|
||||
neolang = 'isnotlangPL'
|
||||
return neolang
|
||||
|
||||
def getDS():
|
||||
s = getDesktop(0).size()
|
||||
return (s.width(), s.height())
|
||||
@@ -528,11 +539,10 @@ class NeoBootInstallation(Screen):
|
||||
os.system('opkg install mtd-utils')
|
||||
if os.system('opkg list-installed | grep mtd-utils-ubifs') != 0:
|
||||
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() == 'ax51' or getBoxHostName() == 'dm920' or getBoxHostName() == 'et1x000' or getCPUSoC() == 'bcm7251' or getBoxHostName() == 'sf4008' or getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k' or getBoxHostName == 'osmio4k' or getBoxHostName() == 'zgemmah9s' or getBoxHostName() == 'h9combo' or getBoxHostName() == 'h10' or getBoxHostName() == 'ax60' or getBoxHostName() == 'sf8008' or getCPUSoC() == 'bcm7251' or getCPUSoC() == 'BCM97252SSFF' or getBoxHostName() == 'dm900':
|
||||
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')
|
||||
|
||||
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':
|
||||
if getCPUSoC() == '7278' or getBoxHostName() == 'vuduo4k':
|
||||
@@ -542,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')
|
||||
@@ -549,18 +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')
|
||||
|
||||
#Zgemma h7S arm
|
||||
elif getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||
os.system('cd ' + LinkNeoBoot + '/' )
|
||||
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; cd')
|
||||
os.system('chmod 755 /sbin/neoinitarm; chmod 755 /sbin/neoinitarm')
|
||||
os.system('python ' + LinkNeoBoot + '/tmpfiles/runpy/findkerneldevice.py; dd if=/dev/kernel of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()) )
|
||||
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/h7s_kernel.sh ' + LinkNeoBoot + '/files/kernel.sh;mv ' + LinkNeoBoot + '/tmpfiles/runpy/h7s_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'] :
|
||||
@@ -569,21 +580,32 @@ class NeoBootInstallation(Screen):
|
||||
os.system('chmod 755 /sbin/neoinitarm; chmod 755 /sbin/neoinitarmvu')
|
||||
os.system('dd if=/dev/mmcblk0p1 of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()) )
|
||||
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/vu_mmcblk0p1.sh ' + LinkNeoBoot + '/files/kernel.sh; mv ' + LinkNeoBoot + '/tmpfiles/runpy/vu4k_run.py ' + LinkNeoBoot + '/run.py; cd')
|
||||
|
||||
# ARM - ustym4kpro
|
||||
# ARM - ustym4kpro
|
||||
elif getBoxHostName() == 'ustym4kpro':
|
||||
os.system('opkg install --force-maintainer --force-reinstall --force-overwrite --force-downgrade kernel-image;cp -f /tmp/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py; dd if=/dev/kernel of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()) )
|
||||
if fileExists('/tmp/findkerneldevice.py'):
|
||||
os.sytem('cp -fr /tmp/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py; ')
|
||||
else:
|
||||
os.sytem('mv ' + LinkNeoBoot + '/tmpfiles/runpy/findustym.py ' + LinkNeoBoot + '/files/findkerneldevice.py')
|
||||
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm')
|
||||
os.system('chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init')
|
||||
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; cd')
|
||||
os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/ustym4kpro.sh ' + LinkNeoBoot + '/files/kernel.sh; mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/tmpfiles/runpy/target/ustym4kpro.py /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/run.py; cd')
|
||||
|
||||
#Zgemma h7S arm - no testet
|
||||
# elif getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7' or getBoxHostName() == 'zgemmah7':
|
||||
# os.system('opkg install --force-maintainer --force-reinstall --force-overwrite --force-downgrade kernel-image;cp -f /tmp/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py; dd if=/dev/kernel of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()) )
|
||||
# if fileExists('/tmp/findkerneldevice.py'):
|
||||
# os.sytem('cp -fr /tmp/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py; ')
|
||||
# else:
|
||||
# os.sytem('mv ' + LinkNeoBoot + '/tmpfiles/runpy/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py')
|
||||
# os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm')
|
||||
# os.system('chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init')
|
||||
# os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; cd')
|
||||
# os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/h7s_kernel.sh ' + LinkNeoBoot + '/files/kernel.sh; mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/tmpfiles/runpy/target/h7s_run.py /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/run.py; cd')
|
||||
|
||||
|
||||
# ARM - ustym4kpro
|
||||
# elif getBoxHostName() == 'ustym4kpro' and getCPUSoC() == '3798mv200':
|
||||
# os.system('opkg install --force-maintainer --force-reinstall --force-overwrite --force-downgrade kernel-image;cp -f /tmp/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py; dd if=/dev/kernel of=%sImagesUpload/.kernel/flash-kernel-%s.bin' % (getNeoLocation(), getBoxHostName()) )
|
||||
# if fileExists('/tmp/findkerneldevice.py'):
|
||||
# os.sytem('cp -fr /tmp/findkerneldevice.py ' + LinkNeoBoot + '/files/findkerneldevice.py; ')
|
||||
# else:
|
||||
# os.sytem('mv ' + LinkNeoBoot + '/tmpfiles/runpy/findustym.py ' + LinkNeoBoot + '/files/findkerneldevice.py')
|
||||
# os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm')
|
||||
# os.system('chmod 0755 /sbin/neoinitarm; ln -sfn /sbin/neoinitarm /sbin/init')
|
||||
# os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitarm /sbin/neoinitarm; cd')
|
||||
# os.system('mv ' + LinkNeoBoot + '/tmpfiles/target/ustym4kpro.sh ' + LinkNeoBoot + '/files/kernel.sh; mv /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/tmpfiles/runpy/target/ustym4kpro.py /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/run.py; cd')
|
||||
|
||||
# MIPS
|
||||
elif getCPUtype() == 'MIPS':
|
||||
if getCPUSoC() or getBoxHostName() or getTunerModel() == ['7335',
|
||||
@@ -789,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()
|
||||
@@ -954,40 +977,52 @@ class NeoBootImageChoose(Screen):
|
||||
os.system('cd ' + LinkNeoBoot + ';curl -O --ftp-ssl https://raw.githubusercontent.com/gutosie/NeoBoot-9/master/ver.txt;sleep 3;cd /')
|
||||
if not fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
os.system('cd ' + LinkNeoBoot + ';fullwget --no-check-certificate https://raw.githubusercontent.com/gutosie/NeoBoot-9/master/ver.txt; sleep 3;cd /')
|
||||
if not fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 8)
|
||||
if fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
mypath = ''
|
||||
version = open('' + LinkNeoBoot + '/ver.txt', 'r')
|
||||
mypath = float(version.read().strip())
|
||||
version.close()
|
||||
if float(UPDATEVERSION) != mypath:
|
||||
message = _('NeoBoot has detected update.\nDo you want to update NeoBoota now ?')
|
||||
ybox = self.session.openWithCallback(self.aktualizacjamboot, MessageBox, message, MessageBox.TYPE_YESNO)
|
||||
ybox.setTitle(_('Updating ... '))
|
||||
elif fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
os.system('rm ' + LinkNeoBoot + '/ver.txt')
|
||||
if fileExists('' + LinkNeoBoot + '/wget-log'):
|
||||
os.system('rm ' + LinkNeoBoot + '/wget-log')
|
||||
self.session.open(MessageBox, _('Updated unnecessary, you have the latest version. Please try again later.'), MessageBox.TYPE_INFO)
|
||||
else:
|
||||
self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 10)
|
||||
else:
|
||||
mypath = ''
|
||||
version = open('' + LinkNeoBoot + '/ver.txt', 'r')
|
||||
mypath = float(version.read().strip())
|
||||
version.close()
|
||||
if float(UPDATEVERSION) != mypath:
|
||||
message = _('NeoBoot has detected update.\nDo you want to update NeoBoota now ?')
|
||||
ybox = self.session.openWithCallback(self.aktualizacjamboot, MessageBox, message, MessageBox.TYPE_YESNO)
|
||||
ybox.setTitle(_('Updating ... '))
|
||||
elif fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
os.system('rm ' + LinkNeoBoot + '/ver.txt')
|
||||
self.session.open(MessageBox, _('Updated unnecessary, you have the latest version. Please try again later.'), MessageBox.TYPE_INFO)
|
||||
if not fileExists('' + LinkNeoBoot + '/ver.txt'):
|
||||
self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 10)
|
||||
|
||||
def aktualizacjamboot(self, yesno):
|
||||
if yesno:
|
||||
if fileExists('/tmp/*.zip'):
|
||||
os.system('rm /tmp/*.zip')
|
||||
os.system('cd /tmp; curl -O --ftp-ssl https://codeload.github.com/gutosie/NeoBoot-9/zip/master; mv /tmp/master /tmp/neoboot.zip; cd /')
|
||||
os.system('sync; cd /tmp; curl -O --ftp-ssl https://codeload.github.com/gutosie/NeoBoot-9/zip/master; mv /tmp/master /tmp/neoboot.zip; cd /')
|
||||
if not fileExists('/tmp/neoboot.zip'):
|
||||
os.system('cd /tmp;fullwget --no-check-certificate https://codeload.github.com/gutosie/NeoBoot-9/zip/master; mv /tmp/master /tmp/neoboot.zip; sleep 3;cd ')
|
||||
if not fileExists('/tmp/neoboot.zip'):
|
||||
self.session.open(MessageBox, _('Unfortunately, at the moment not found an update, try again later.'), MessageBox.TYPE_INFO, 8)
|
||||
else:
|
||||
else:
|
||||
self.goUpdateNEO()
|
||||
else:
|
||||
self.goUpdateNEO()
|
||||
else:
|
||||
os.system('rm -f ' + LinkNeoBoot + '/ver.txt')
|
||||
self.session.open(MessageBox, _('The update has been canceled.'), MessageBox.TYPE_INFO, 8)
|
||||
|
||||
def goUpdateNEO(self):
|
||||
if fileExists('' + LinkNeoBoot + '/wget-log'):
|
||||
os.system('rm ' + LinkNeoBoot + '/wget-log')
|
||||
os.system('cd /tmp/; unzip -qn ./neoboot.zip; rm -f ./neoboot.zip; cp -rf ./NeoBoot-9-master/NeoBoot /usr/lib/enigma2/python/Plugins/Extensions; rm -rf /tmp/NeoBoot-9-master; rm ' + LinkNeoBoot + '/ver.txt; cd ' + LinkNeoBoot + '/; chmod 0755 ./bin/neoini*; chmod 0755 ./ex_init.py; chmod 0755 ./tmpfiles/target/*; chmod 0755 ./files/NeoBoot.sh; chmod 0755 ./files/userscript.sh; cd')
|
||||
if getCPUtype() == 'MIPS':
|
||||
os.system('cd ' + LinkNeoBoot + '/; cp -rf ./bin/neoinitmipsvu /sbin; chmod 755 /sbin/neoinitmipsvu; cp -rf ./bin/neoinitmips /sbin; chmod 755 /sbin/neoinitmips; cd')
|
||||
os.system('cd ' + LinkNeoBoot + '/; rm ./bin/install; rm ./files/mountpoint.sh; rm ./files/neo.sh')
|
||||
restartbox = self.session.openWithCallback(self.restartGUI, MessageBox, _('Completed update NeoBoot. You need to restart the E2 !!!\nRestart now ?'), MessageBox.TYPE_YESNO)
|
||||
restartbox.setTitle(_('Restart GUI now ?'))
|
||||
else:
|
||||
os.system('rm -f ' + LinkNeoBoot + '/ver.txt')
|
||||
self.session.open(MessageBox, _('The update has been canceled.'), MessageBox.TYPE_INFO, 8)
|
||||
|
||||
def restartGUI(self, answer):
|
||||
if answer is True:
|
||||
@@ -1210,6 +1245,7 @@ class NeoBootImageChoose(Screen):
|
||||
'h9combo',
|
||||
'h10',
|
||||
'osmio4k',
|
||||
'osmio4kplus',
|
||||
'bcm7252s',
|
||||
'gbquad4k',
|
||||
'ax60',
|
||||
@@ -1251,7 +1287,13 @@ class NeoBootImageChoose(Screen):
|
||||
'ustym4kpro'
|
||||
'h3'
|
||||
'formuler4turbo'
|
||||
'formuler3']:
|
||||
'formuler3',
|
||||
'tmtwin4k',
|
||||
'anadol4k',
|
||||
'protek4k',
|
||||
'maxytecmulti',
|
||||
'force3uhd',
|
||||
'viper4k ']:
|
||||
self.extractImage()
|
||||
else:
|
||||
self.messagebox = self.session.open(MessageBox, _('The tuner is not supported by NeoBoot.\nContact the author.\nNo proper STB for installation !!!!'), MessageBox.TYPE_INFO, 8)
|
||||
@@ -1381,7 +1423,7 @@ def checkInternet():
|
||||
|
||||
def checkimage():
|
||||
mycheck = False
|
||||
if not fileExists('/proc/stb/info') or not fileExists('' + LinkNeoBoot + '/neoskins/neo/neo_skin.py') or not fileExists('' + LinkNeoBoot + '/tmpfiles') or not fileExists('' + LinkNeoBoot + '/usedskin.pyo') or not fileExists('/etc/neo'):
|
||||
if not fileExists('/proc/stb/info') or not fileExists('' + LinkNeoBoot + '/neoskins/neo/neo_skin.py') or not fileExists('' + LinkNeoBoot + '/bin/utilsbh') or not fileExists('' + LinkNeoBoot + '/stbinfo'):
|
||||
mycheck = False
|
||||
else:
|
||||
mycheck = True
|
||||
|
||||
51
NeoBoot/stbinfo
Normal file
51
NeoBoot/stbinfo
Normal 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
|
||||
|
||||
208
NeoBoot/tmpfiles/runpy/arm_run.py
Normal file
208
NeoBoot/tmpfiles/runpy/arm_run.py
Normal file
@@ -0,0 +1,208 @@
|
||||
# -*- 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 Screens.Console import Console
|
||||
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
|
||||
|
||||
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_LEFT|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 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
if not fileExists(mypath + 'icons'):
|
||||
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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 os.path.exists('/proc/stb/info/boxtype'):
|
||||
if getBoxHostName == 'sf4008': #getCPUSoC() == 'bcm7251'
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p4 /media/InternalFlash')
|
||||
|
||||
if os.path.exists('/proc/stb/info/boxtype'):
|
||||
if getBoxHostName == 'et1x000': #getCPUSoC() == 'bcm7251' or
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p4 /media/InternalFlash')
|
||||
|
||||
if os.path.exists('/proc/stb/info/boxtype'):
|
||||
if getBoxHostName == 'ax51': #getCPUSoC() == 'bcm7251s' or
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p4 /media/InternalFlash')
|
||||
|
||||
if os.path.exists('/proc/stb/info/boxtype'):
|
||||
if getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p3 /media/InternalFlash')
|
||||
|
||||
if os.path.exists('/proc/stb/info/boxtype'):
|
||||
if getBoxHostName() == 'zgemmah9s':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p7 /media/InternalFlash')
|
||||
|
||||
# if os.path.exists('/proc/stb/info/boxtype'):
|
||||
# if getBoxHostName() == 'zgemmah9combo':
|
||||
# os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p7 /media/InternalFlash')
|
||||
|
||||
if getBoxHostName == 'sf8008':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p13 /media/InternalFlash')
|
||||
|
||||
if getBoxHostName == 'ax60':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p21 /media/InternalFlash')
|
||||
|
||||
if getBoxHostName() == 'ustym4kpro' or getTunerModel() == 'ustym4kpro':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p13 /media/InternalFlash')
|
||||
|
||||
if os.path.exists('/proc/stb/info/model'):
|
||||
if getTunerModel() == 'dm900' or getCPUSoC() == 'BCM97252SSFF':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p2 /media/InternalFlash')
|
||||
|
||||
if getCPUSoC() == 'bcm7252s' or getBoxHostName() == 'gbquad4k':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p5 /media/InternalFlash')
|
||||
|
||||
#if getBoxHostName == 'osmio4k':
|
||||
#os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p5 /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____##########################
|
||||
|
||||
#ARM procesor: DM900; AX HD60 4K
|
||||
if getCPUtype() == 'ARMv7' and getCPUSoC() or getBoxHostName() == ['osmio4k',
|
||||
'osmio4kplus',
|
||||
'ax60',
|
||||
'sf8008',
|
||||
'bcm7251',
|
||||
'sf4008',
|
||||
'et1x000',
|
||||
'dm920',
|
||||
'ax51',
|
||||
'bcm7251s',
|
||||
'h7',
|
||||
'hi3798mv200'
|
||||
'zgemmah9s',
|
||||
'bcm7252s',
|
||||
'gbquad4k',
|
||||
'ustym4kpro',
|
||||
'3798mv200'
|
||||
'dm900',
|
||||
'tmtwin4k',
|
||||
'anadol4k',
|
||||
'protek4k',
|
||||
'maxytecmulti',
|
||||
'force3uhd',
|
||||
'viper4k'] :
|
||||
if getImageNeoBoot() == 'Flash':
|
||||
if fileExists('/.multinfo'):
|
||||
os.system('cd /media/InternalFlash; ln -sfn /sbin/init.sysvinit /media/InternalFlash/sbin/init; reboot -f ')
|
||||
elif not fileExists('/.multinfo'):
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...\n')
|
||||
cmd1='sleep 5; ln -sfn /sbin/init.sysvinit /sbin/init; reboot -f '
|
||||
self.session.open(Console, _('NeoBoot ....'), [cmd, cmd1])
|
||||
|
||||
elif getImageNeoBoot() != 'Flash':
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...\n')
|
||||
cmd1='sleep 5; ln -sfn /sbin/neoinitarm /sbin/init; reboot -f '
|
||||
self.session.open(Console, _('NeoBoot ....'), [cmd, cmd1])
|
||||
|
||||
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()
|
||||
|
||||
|
||||
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()
|
||||
|
||||
def myclose2(self, message):
|
||||
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
||||
self.close()
|
||||
159
NeoBoot/tmpfiles/runpy/duo4k_run.py
Normal file
159
NeoBoot/tmpfiles/runpy/duo4k_run.py
Normal 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() == 'duo4k':
|
||||
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 - Duo4k vu_mmcblk0p6.sh
|
||||
if getCPUSoC() == '7278' or getBoxHostName() == 'vuduo4k' :
|
||||
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()
|
||||
159
NeoBoot/tmpfiles/runpy/duo4kse_run.py
Normal file
159
NeoBoot/tmpfiles/runpy/duo4kse_run.py
Normal 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()
|
||||
52
NeoBoot/tmpfiles/runpy/findkerneldevice.py
Normal file
52
NeoBoot/tmpfiles/runpy/findkerneldevice.py
Normal file
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import os
|
||||
import sys
|
||||
import collections
|
||||
import struct
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
# http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_table_header_.28LBA_1.29
|
||||
GPT_HEADER_FORMAT = """
|
||||
8s signature
|
||||
4s revision
|
||||
L header_size
|
||||
L crc32
|
||||
4x _
|
||||
Q current_lba
|
||||
Q backup_lba
|
||||
Q first_usable_lba
|
||||
Q last_usable_lba
|
||||
16s disk_guid
|
||||
Q part_entry_start_lba
|
||||
L num_part_entries
|
||||
L part_entry_size
|
||||
L crc32_part_array
|
||||
"""
|
||||
|
||||
# http://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_entries_.28LBA_2.E2.80.9333.29
|
||||
GPT_PARTITION_FORMAT = """
|
||||
16s type
|
||||
16s unique
|
||||
Q first_lba
|
||||
Q last_lba
|
||||
Q flags
|
||||
72s name
|
||||
"""
|
||||
|
||||
file = '/boot/STARTUP'
|
||||
myfile = open(file, 'r')
|
||||
data = myfile.read().replace('\n', '')
|
||||
myfile.close()
|
||||
|
||||
rootfsdevice = data.split("=",1)[1].split(" ",1)[0]
|
||||
kerneldevice = rootfsdevice[:-1] + str(int(rootfsdevice[-1:]) -1)
|
||||
|
||||
if os.access('/dev/kernel', os.R_OK):
|
||||
os.remove('/dev/kernel')
|
||||
os.symlink(kerneldevice, '/dev/kernel')
|
||||
else:
|
||||
os.symlink(kerneldevice, '/dev/kernel')
|
||||
|
||||
# print kerneldevice
|
||||
155
NeoBoot/tmpfiles/runpy/h7s_run.py
Normal file
155
NeoBoot/tmpfiles/runpy/h7s_run.py
Normal file
@@ -0,0 +1,155 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
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.Console import Console
|
||||
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
|
||||
|
||||
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_LEFT|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 os.path.exists('/proc/stb/info/boxtype'):
|
||||
if getCPUSoC() == 'bcm7251s' or getBoxHostName() == 'h7':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p3 /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____##########################
|
||||
#Zgemma h7S ARM ARM - h7s_mmcblk0p2.sh
|
||||
if getBoxHostName() == 'h7' or getCPUSoC() == 'bcm7251s':
|
||||
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 - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'cd /media/InternalFlash; ln -sf "init.sysvinit" "/media/InternalFlash/sbin/init"; ' + LinkNeoBoot + '/target/h7s_kernel.sh '
|
||||
|
||||
elif not fileExists('/.multinfo'):
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'ln -sf "init.sysvinit" "/sbin/init"; reboot -f'
|
||||
|
||||
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 - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'ln -sfn /sbin/neoinitarm /sbin/init; reboot -f'
|
||||
|
||||
elif fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'ln -sfn /sbin/neoinitarm /sbin/init; ' + LinkNeoBoot + '/target/h7s_kernel.sh '
|
||||
|
||||
elif fileExists('/.multinfo'):
|
||||
if not fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'python ' + LinkNeoBoot + '/target/findkerneldevice.py; dd if=%sImagesUpload/.kernel/flash-kernel-%s.bin of=/dev/kernel; cd /media/InternalFlash;ln -sf "neoinitarm" "/media/InternalFlash/sbin/init"; reboot -f' % getNeoLocation() % getBoxHostName()
|
||||
|
||||
elif fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'cd /media/InternalFlash; ln -sf "neoinitarm" "/media/InternalFlash/sbin/init"; ' + LinkNeoBoot + '/target/h7s_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()
|
||||
153
NeoBoot/tmpfiles/runpy/mips_run.py
Normal file
153
NeoBoot/tmpfiles/runpy/mips_run.py
Normal file
@@ -0,0 +1,153 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
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.Console import Console
|
||||
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 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
|
||||
|
||||
|
||||
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_LEFT|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 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
if not fileExists(mypath + 'icons'):
|
||||
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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() ))
|
||||
|
||||
system('chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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;')
|
||||
|
||||
#################_____MIPS____##################################
|
||||
#MIPS procesor: MiracleBox, ET8500, Formuler F1, Formuler F3, Atemio6000 - MIPS # test - ultra, osmini
|
||||
if getCPUtype() != 'ARMv7' and getCPUSoC() or getBoxHostName() == ['bcm7358',
|
||||
'ax60',
|
||||
'bcm7362',
|
||||
'bcm7356',
|
||||
'bcm7241',
|
||||
'bcm7362',
|
||||
'bcm73625'
|
||||
'mbmini',
|
||||
'h3',
|
||||
'ini-1000sv',
|
||||
'osmini'
|
||||
'formuler4turbo'] :
|
||||
if getImageNeoBoot() == 'Flash':
|
||||
self.session.open(TryQuitMainloop, 2)
|
||||
elif getImageNeoBoot() != 'Flash':
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...\n')
|
||||
cmd1='sleep 5; ln -sfn /sbin/neoinitmips /sbin/init; reboot -d -f -h -i'
|
||||
self.session.open(Console, _('NeoBoot ....'), [cmd, cmd1])
|
||||
else:
|
||||
os.system('echo "Flash " >> ' + getNeoLocation() + 'ImageBoot/.neonextboot')
|
||||
self.messagebox = self.session.open(MessageBox, _('Wygląda na to że multiboot nie wspiera tego modelu STB !!! '), MessageBox.TYPE_INFO, 8)
|
||||
self.close()
|
||||
|
||||
elif getCPUtype() != 'ARMv7' and getCPUSoC() or getBoxHostName() == ['bcm7424',
|
||||
'mbultra',
|
||||
'ini-8000sv' ] :
|
||||
if getImageNeoBoot() == 'Flash':
|
||||
self.session.open(TryQuitMainloop, 2)
|
||||
elif getImageNeoBoot() != 'Flash':
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...\n')
|
||||
cmd1='sleep 5; ln -sfn /sbin/neoinitmipsvu /sbin/init; reboot -d -f -h -i'
|
||||
self.session.open(Console, _('NeoBoot ....'), [cmd, cmd1])
|
||||
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()
|
||||
|
||||
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()
|
||||
|
||||
def myclose2(self, message):
|
||||
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
||||
self.close()
|
||||
157
NeoBoot/tmpfiles/runpy/ustym4kpro.py
Normal file
157
NeoBoot/tmpfiles/runpy/ustym4kpro.py
Normal file
@@ -0,0 +1,157 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
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.Console import Console
|
||||
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 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
|
||||
|
||||
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_LEFT|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 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
if not fileExists(mypath + 'icons'):
|
||||
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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 getBoxHostName() == 'ustym4kpro' or getTunerModel() == 'ustym4kpro':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p13 /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 ustym4kpro - kernel = mmcblk0p12
|
||||
if getCPUtype() == 'ARMv7' and getBoxHostName() == 'ustym4kpro':
|
||||
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"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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/neoinitarm /sbin/init; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh '
|
||||
|
||||
elif fileExists('/.multinfo'):
|
||||
if not fileExists('%sImageBoot/%s/boot/zImage.%s' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
cmd = "echo -e '\n\n%s '" % _('NEOBOOT - Restart image flash....\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/findkerneldevice.py; dd if=%sImagesUpload/.kernel/flash-kernel-%s.bin of=/dev/kernel; cd /media/InternalFlash;ln -sf "neoinitarm" "/media/InternalFlash/sbin/init"; reboot -f' % getNeoLocation() % getBoxHostName()
|
||||
|
||||
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 "neoinitarm" "/media/InternalFlash/sbin/init"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh '
|
||||
|
||||
self.session.open(Console, _('NeoBoot ARM VU+....'), [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()
|
||||
|
||||
162
NeoBoot/tmpfiles/runpy/vu4k_run.py
Normal file
162
NeoBoot/tmpfiles/runpy/vu4k_run.py
Normal file
@@ -0,0 +1,162 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
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_LEFT|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() == 'uno4kse' or getBoxVuModel() == 'uno4k' or getBoxVuModel() == 'ultimo4k' or getBoxVuModel() == 'solo4k':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p4 /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 ultimo4k, solo4k, uno4k, uno4kse - mmcblk0p1.sh
|
||||
if getCPUtype() == 'ARMv7' and getCPUSoC() or getBoxHostName() == ['7444s',
|
||||
'7376',
|
||||
'7252s',
|
||||
'vuultimo4k'
|
||||
'vusolo4k',
|
||||
'vuuno4k',
|
||||
'vuuno4kse'] :
|
||||
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/mmcblk0p1; 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 VU+....'), [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()
|
||||
153
NeoBoot/tmpfiles/runpy/vu_mtd1_run.py
Normal file
153
NeoBoot/tmpfiles/runpy/vu_mtd1_run.py
Normal file
@@ -0,0 +1,153 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
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.Console import Console
|
||||
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 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
|
||||
|
||||
|
||||
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_LEFT|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 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
if not fileExists(mypath + 'icons'):
|
||||
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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() ))
|
||||
|
||||
system('chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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;')
|
||||
|
||||
#################_____mips___##########################
|
||||
|
||||
#VUPLUS MIPS vu_dev_mtd1.sh
|
||||
if getCPUSoC() == '7335' or getCPUSoC() == '7325' or getCPUSoC() == '7405' or getCPUSoC() == '7405(with 3D)' or getBoxHostName() == 'vuultimo' or getBoxHostName() == 'bm750' or getBoxHostName() == 'duo' or getBoxHostName() == 'vuuno' or getBoxHostName() == 'vusolo' or getBoxHostName() == 'vuduo':
|
||||
if not fileExists('%sImagesUpload/.kernel/%s.vmlinux.gz' % (getNeoLocation(), getBoxHostName()) ):
|
||||
self.myclose2(_('Error - in the location %sImagesUpload/.kernel/ \nkernel file not found flash kernel vmlinux.gz ' % getNeoLocation() ))
|
||||
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 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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 = 'ln -sfn /sbin/init.sysvinit /sbin/init; /etc/init.d/reboot'
|
||||
|
||||
elif getImageNeoBoot() != 'Flash':
|
||||
if not fileExists('/.multinfo'):
|
||||
|
||||
if fileExists('' + getNeoLocation() + 'ImageBoot/' + getImageNeoBoot() + '/boot/' + getBoxHostName() + '.vmlinux.gz'):
|
||||
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT-REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'ln -sfn /sbin/neoinitmipsvu /sbin/init; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
|
||||
|
||||
elif not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( 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/neoinitmipsvu /sbin/init; /etc/init.d/reboot'
|
||||
|
||||
elif fileExists('/.multinfo'):
|
||||
if not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
cmd = "echo -e '\n\n%s '" % _('...............NEOBOOT_REBOOT...............\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = 'flash_eraseall /dev/mtd1; sleep 2; nandwrite -p /dev/mtd1 %sImagesUpload/.kernel/%s.vmlinux.gz; /etc/init.d/reboot' % getNeoLocation(), getBoxHostName()
|
||||
|
||||
elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
cmd = "echo -e '\n\n%s '" % _('...............REBOOT now...............\nPlease wait, in a moment the decoder will be restarted...')
|
||||
cmd1 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
|
||||
|
||||
self.session.open(Console, _('NeoBoot MIPS....'), [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()
|
||||
|
||||
def myclose2(self, message):
|
||||
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
||||
self.close()
|
||||
142
NeoBoot/tmpfiles/runpy/vu_mtd2_run.py
Normal file
142
NeoBoot/tmpfiles/runpy/vu_mtd2_run.py
Normal file
@@ -0,0 +1,142 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
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.Console import Console
|
||||
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 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
|
||||
|
||||
|
||||
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_LEFT|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 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
if not fileExists(mypath + 'icons'):
|
||||
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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() ))
|
||||
|
||||
system('chmod 755 /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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;')
|
||||
|
||||
#################_____mips___##########################
|
||||
|
||||
#VUPLUS MIPS vu_dev_mtd2.sh , #Miracle Box Ultra dev_mtd2.sh
|
||||
if getCPUSoC() == '7356' or getCPUSoC() == '7429' or getCPUSoC() == '7424' or getCPUSoC() == '7241' or getCPUSoC() == '7362' or getBoxHostName() == 'vusolo2' or getBoxHostName() == 'vusolose' or getBoxHostName() == 'vuduo2' or getBoxHostName() == 'vuzero':
|
||||
if not fileExists('%sImagesUpload/.kernel/%s.vmlinux.gz' % (getNeoLocation(), getBoxHostName()) ):
|
||||
self.myclose2(_('Error - in the location %sImagesUpload/.kernel/ \nkernel file not found flash kernel vmlinux.gz ' % getNeoLocation() ))
|
||||
else:
|
||||
|
||||
if getImageNeoBoot() == 'Flash':
|
||||
if fileExists('/.multinfo'):
|
||||
cmd = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
|
||||
elif not fileExists('/.multinfo'):
|
||||
cmd = 'ln -sfn /sbin/init.sysvinit /sbin/init; /etc/init.d/reboot'
|
||||
|
||||
elif getImageNeoBoot() != 'Flash':
|
||||
if not fileExists('/.multinfo'):
|
||||
if not fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
os.system('ln -sfn /sbin/neoinitmipsvu /sbin/init')
|
||||
cmd = '/etc/init.d/reboot'
|
||||
|
||||
elif fileExists('%sImageBoot/%s/boot/%s.vmlinux.gz' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
os.system('ln -sfn /sbin/neoinitmipsvu /sbin/init')
|
||||
cmd = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
|
||||
|
||||
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' % ( getNeoLocation(), getImageNeoBoot(), getBoxHostName())):
|
||||
cmd = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh'
|
||||
|
||||
self.session.open(Console, _('NeoBoot MIPS....'), [cmd])
|
||||
self.close()
|
||||
|
||||
def myclose2(self, message):
|
||||
self.session.open(MessageBox, message, MessageBox.TYPE_INFO)
|
||||
self.close()
|
||||
156
NeoBoot/tmpfiles/runpy/zero4k_run.py
Normal file
156
NeoBoot/tmpfiles/runpy/zero4k_run.py
Normal file
@@ -0,0 +1,156 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
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_LEFT|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 = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
if not fileExists(mypath + 'icons'):
|
||||
mypixmap = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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() == 'zero4k':
|
||||
os.system('mkdir -p /media/InternalFlash; mount /dev/mmcblk0p7 /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 - Zero4k vu_mmcblk0p4.sh
|
||||
elif getBoxHostName() == 'vuzero4k' or getCPUSoC() == '72604':
|
||||
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"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/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/mmcblk0p1; 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"; /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/kernel.sh '
|
||||
|
||||
self.session.open(Console, _('NeoBoot ARM VU'), [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()
|
||||
119
NeoBoot/tmpfiles/target/h7s_kernel.sh
Normal file
119
NeoBoot/tmpfiles/target/h7s_kernel.sh
Normal file
@@ -0,0 +1,119 @@
|
||||
#!/bin/sh
|
||||
#script - gutosie
|
||||
if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
|
||||
PL=1
|
||||
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
|
||||
# $NEOBOOTMOUNT$IMAGE
|
||||
# $NEOBOOTMOUNT
|
||||
|
||||
if [ -f $NEOBOOTMOUNT$IMAGENEXTBOOT ]; then
|
||||
TARGET=`cat $NEOBOOTMOUNT$IMAGENEXTBOOT`
|
||||
else
|
||||
TARGET=Flash
|
||||
fi
|
||||
|
||||
echo "NEOBOOT is booting image from " $TARGET
|
||||
|
||||
if [ $BOXNAME = "h7" ] || [ $CHIPSET = "bcm7251s" ]; then
|
||||
if [ $TARGET = "Flash" ]; then
|
||||
if [ -e /.multinfo ]; then
|
||||
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p......" || echo "Instaling kernel bin file /dev/mmcblk0p... "
|
||||
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
|
||||
python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py
|
||||
dd if=$NEOBOOTMOUNT$UPLOAD/.kernel/flash-kernel-$BOXNAME.bin conv=noerror conv=sync of=/dev/kernel
|
||||
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
|
||||
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p......" || echo "Instaling kernel bin file /dev/mmcblk0p... "
|
||||
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
|
||||
python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py
|
||||
dd if=$NEOBOOTMOUNT$UPLOAD/.kernel/flash-kernel-$BOXNAME.bin conv=noerror conv=sync of=/dev/kernel
|
||||
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/kernel | grep "kernel"
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "STB: " $CHIPSET " "$BOXNAME" "
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
sleep 5
|
||||
reboot -d -f
|
||||
else
|
||||
if [ $TARGET != "Flash" ]; then
|
||||
if [ -e /.multinfo ] ; then
|
||||
INFOBOOT=$( cat /.multinfo )
|
||||
if [ $TARGET = $INFOBOOT ] ; then
|
||||
echo "NEOBOOT is booting image " $TARGET
|
||||
else
|
||||
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
|
||||
sleep 2
|
||||
cp -f $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
|
||||
echo "Instalacja kernel do /dev/mmcblk0p..."
|
||||
sleep 2
|
||||
if [ -d /proc/stb ] ; then
|
||||
python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py
|
||||
dd if=/tmp/zImage of=/dev/kernel
|
||||
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
|
||||
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
|
||||
sleep 2
|
||||
cp -fR $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
|
||||
echo "Instalacja kernel bin do /dev/mmcblk0p..."
|
||||
sleep 2
|
||||
if [ -d /proc/stb ] ; then
|
||||
python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py
|
||||
dd if=/tmp/zImage of=/dev/kernel
|
||||
fi
|
||||
echo "Kernel dla potrzeb startu systemu " $TARGET " zmieniony."
|
||||
echo "Start innego image z Flash za 5 sekund RESTART...... \n\n...................-REBOOT-..................."
|
||||
fi
|
||||
rm -f /tmp/zImage
|
||||
cat /dev/kernel | grep "kernel"
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "STB: " $CHIPSET " "$BOXNAME" "
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
sleep 5
|
||||
reboot -d -f
|
||||
fi
|
||||
fi
|
||||
else
|
||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||
echo "CHIPSET: " $CHIPSET " BOXNAME: "$BOXNAME" "
|
||||
echo "$TARGET " > $NEOBOOTMOUNT/ImageBoot/.neonextboot
|
||||
echo "Error - Nie wpierany model STB !!! "
|
||||
exit 0
|
||||
fi
|
||||
exit 0
|
||||
119
NeoBoot/tmpfiles/target/ustym4kpro.sh
Normal file
119
NeoBoot/tmpfiles/target/ustym4kpro.sh
Normal file
@@ -0,0 +1,119 @@
|
||||
#!/bin/sh
|
||||
#script - gutosie
|
||||
if `grep -q 'osd.language=pl_PL' </etc/enigma2/settings`; then
|
||||
PL=1
|
||||
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
|
||||
# $NEOBOOTMOUNT$IMAGE
|
||||
# $NEOBOOTMOUNT
|
||||
|
||||
if [ -f $NEOBOOTMOUNT$IMAGENEXTBOOT ]; then
|
||||
TARGET=`cat $NEOBOOTMOUNT$IMAGENEXTBOOT`
|
||||
else
|
||||
TARGET=Flash
|
||||
fi
|
||||
|
||||
echo "NEOBOOT is booting image from " $TARGET
|
||||
|
||||
if [ $BOXNAME = "ustym4kpro" ] ; then
|
||||
if [ $TARGET = "Flash" ]; then
|
||||
if [ -e /.multinfo ]; then
|
||||
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p......" || echo "Instaling kernel bin file /dev/mmcblk0p... "
|
||||
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
|
||||
python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py
|
||||
dd if=$NEOBOOTMOUNT$UPLOAD/.kernel/flash-kernel-$BOXNAME.bin conv=noerror conv=sync of=/dev/kernel
|
||||
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
|
||||
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p......" || echo "Instaling kernel bin file /dev/mmcblk0p... "
|
||||
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
|
||||
python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py
|
||||
dd if=$NEOBOOTMOUNT$UPLOAD/.kernel/flash-kernel-$BOXNAME.bin conv=noerror conv=sync of=/dev/kernel
|
||||
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/kernel | grep "kernel"
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "STB: " $CHIPSET " "$BOXNAME" "
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
sleep 5
|
||||
reboot -d -f
|
||||
else
|
||||
if [ $TARGET != "Flash" ]; then
|
||||
if [ -e /.multinfo ] ; then
|
||||
INFOBOOT=$( cat /.multinfo )
|
||||
if [ $TARGET = $INFOBOOT ] ; then
|
||||
echo "NEOBOOT is booting image " $TARGET
|
||||
else
|
||||
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
|
||||
sleep 2
|
||||
cp -f $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
|
||||
echo "Instalacja kernel do /dev/mmcblk0p..."
|
||||
sleep 2
|
||||
if [ -d /proc/stb ] ; then
|
||||
python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py
|
||||
dd if=/tmp/zImage of=/dev/kernel
|
||||
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
|
||||
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
|
||||
sleep 2
|
||||
cp -fR $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
|
||||
echo "Instalacja kernel bin do /dev/mmcblk0p..."
|
||||
sleep 2
|
||||
if [ -d /proc/stb ] ; then
|
||||
python /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/target/findkerneldevice.py
|
||||
dd if=/tmp/zImage of=/dev/kernel
|
||||
fi
|
||||
echo "Kernel dla potrzeb startu systemu " $TARGET " zmieniony."
|
||||
echo "Start innego image z Flash za 5 sekund RESTART...... \n\n...................-REBOOT-..................."
|
||||
fi
|
||||
rm -f /tmp/zImage
|
||||
cat /dev/kernel | grep "kernel"
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "STB: " $CHIPSET " "$BOXNAME" "
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
sleep 5
|
||||
reboot -d -f
|
||||
fi
|
||||
fi
|
||||
else
|
||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||
echo "CHIPSET: " $CHIPSET " BOXNAME: "$BOXNAME" "
|
||||
echo "$TARGET " > $NEOBOOTMOUNT/ImageBoot/.neonextboot
|
||||
echo "Error - Nie wpierany model STB !!! "
|
||||
exit 0
|
||||
fi
|
||||
exit 0
|
||||
120
NeoBoot/tmpfiles/target/vuDuo4Kmmcblk0p6.sh
Normal file
120
NeoBoot/tmpfiles/target/vuDuo4Kmmcblk0p6.sh
Normal 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 = "duo4k" ] ; 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
|
||||
120
NeoBoot/tmpfiles/target/vuDuo4Ksemmcblk0p6.sh
Normal file
120
NeoBoot/tmpfiles/target/vuDuo4Ksemmcblk0p6.sh
Normal 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
|
||||
124
NeoBoot/tmpfiles/target/vuZero4Kmmcblk0p4.sh
Normal file
124
NeoBoot/tmpfiles/target/vuZero4Kmmcblk0p4.sh
Normal file
@@ -0,0 +1,124 @@
|
||||
#!/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 = "zero4k" ] ; then
|
||||
if [ $TARGET = "Flash" ]; then
|
||||
INFOBOOT=$( cat /.multinfo )
|
||||
if [ $TARGET = $INFOBOOT ] ; then
|
||||
echo "NEOBOOT is booting image " $TARGET
|
||||
elif [ -e /.multinfo ]; then
|
||||
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p4......" || echo "Instaling kernel bin file /dev/mmcblk0p4... "
|
||||
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/mmcblk0p4
|
||||
fi
|
||||
echo "VUZERO4K - Boot - Flash. "
|
||||
echo "Start image Flash z dysku hdd lub usb za 5 sekund _RESTART_..."
|
||||
fi
|
||||
elif [ ! -e /.multinfo ]; then
|
||||
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p4......" || echo "Instaling kernel bin file /dev/mmcblk0p4... "
|
||||
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/mmcblk0p4
|
||||
fi
|
||||
echo "Start-restart Flash image..."
|
||||
echo "Reboot image Flash za 5 sekund =RESTART=...; "
|
||||
fi
|
||||
fi
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
[ $PL ] && echo " Zainstalowano kernel image " $TARGET " " || echo " Installed kernel image - "$TARGET" "
|
||||
cat /dev/mmcblk0p4 | grep "kernel"
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "CHIPSET: " $CHIPSET " BOXNAME: "$BOXNAME" MODEL: "$VUMODEL" "
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
echo "...............shutdown now..............."
|
||||
sleep 5
|
||||
echo -n "Rebooting... "
|
||||
reboot -d -f
|
||||
else
|
||||
if [ $TARGET != "Flash" ]; then
|
||||
if [ -e /.multinfo ] ; then
|
||||
INFOBOOT=$( cat /.multinfo )
|
||||
if [ $TARGET = $INFOBOOT ] ; then
|
||||
echo "NEOBOOT is booting image " $TARGET
|
||||
else
|
||||
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
|
||||
sleep 2
|
||||
cp -fR $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
|
||||
echo "Instalacja kernel do /dev/mmcblk0p4..."
|
||||
sleep 2
|
||||
if [ -d /proc/stb ] ; then
|
||||
dd if=/tmp/zImage of=/dev/mmcblk0p4
|
||||
fi
|
||||
echo "Start image z Flash..."
|
||||
echo "Kernels for image " $TARGET " changed..."
|
||||
echo "Start innego image z Flash za 5 sekund *RESTART*..."
|
||||
fi
|
||||
else
|
||||
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
|
||||
sleep 2
|
||||
cp -fR $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
|
||||
echo "Instalacja kernel bin do /dev/mmcblk0p4..."
|
||||
sleep 2
|
||||
if [ -d /proc/stb ] ; then
|
||||
dd if=/tmp/zImage of=/dev/mmcblk0p4
|
||||
fi
|
||||
echo "Kernel dla potrzeb startu systemu " $TARGET " VU+ zmieniony."
|
||||
echo "Start innego image z Flash za 5 sekund -RESTART-..."
|
||||
fi
|
||||
rm -f /tmp/zImage
|
||||
cat /dev/mmcblk0p4 | grep "kernel"
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "CHIPSET: " $CHIPSET " BOXNAME: "$BOXNAME" MODEL: "$VUMODEL" "
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
echo "...............Shutdown Now..............."
|
||||
sleep 5
|
||||
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
|
||||
125
NeoBoot/tmpfiles/target/vu_dev_mtd1.sh
Normal file
125
NeoBoot/tmpfiles/target/vu_dev_mtd1.sh
Normal file
@@ -0,0 +1,125 @@
|
||||
#!/bin/sh
|
||||
#script - gutosie
|
||||
|
||||
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.ipk ]; then
|
||||
rm -f /tmp/zImage.ipk
|
||||
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)
|
||||
# $NEOBOOTMOUNT$IMAGE
|
||||
# $NEOBOOTMOUNT
|
||||
UPLOAD=ImagesUpload
|
||||
|
||||
if [ -f $NEOBOOTMOUNT$IMAGENEXTBOOT ]; then
|
||||
TARGET=`cat $NEOBOOTMOUNT$IMAGENEXTBOOT`
|
||||
else
|
||||
TARGET=Flash
|
||||
fi
|
||||
|
||||
if [ $VUMODEL = "bm750" ] || [ $VUMODEL = "duo" ] || [ $VUMODEL = "solo" ] || [ $VUMODEL = "uno" ] || [ $VUMODEL = "ultimo" ]; then
|
||||
if [ $TARGET = "Flash" ]; then
|
||||
if [ -e /.multinfo ]; then
|
||||
if [ -f /proc/stb/info/vumodel ] || [ ! -e /proc/stb/info/boxtype ]; then
|
||||
if [ -e $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXNAME.vmlinux.gz ] ; then
|
||||
echo "Kasowanie kernel z /dev/mtd1..."
|
||||
sleep 2
|
||||
flash_eraseall /dev/mtd1
|
||||
echo "Instalacja kernel do /dev/mtd1..."
|
||||
sleep 2
|
||||
nandwrite -p /dev/mtd1 $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXNAME.vmlinux.gz
|
||||
update-alternatives --remove vmlinux vmlinux-$KERNEL || true
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "NEOBOOT is booting image from " $TARGET
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
|
||||
elif [ ! -e /.multinfo ]; then
|
||||
if [ -f /proc/stb/info/vumodel ] || [ ! -e /proc/stb/info/boxtype ]; then
|
||||
if [ $VUMODEL = "bm750" ] || [ $VUMODEL = "duo" ] || [ $VUMODEL = "solo" ] || [ $VUMODEL = "uno" ] || [ $VUMODEL = "ultimo" ]; then
|
||||
if [ -e $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXNAME.vmlinux.gz ] ; then
|
||||
echo "Kasowanie kernel z /dev/mtd1..."
|
||||
sleep 2
|
||||
flash_eraseall /dev/mtd1
|
||||
echo "Wgrywanie kernel do /dev/mtd1..."
|
||||
sleep 2
|
||||
nandwrite -p /dev/mtd1 $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXNAME.vmlinux.gz
|
||||
update-alternatives --remove vmlinux vmlinux-$KERNEL || true
|
||||
fi
|
||||
fi
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo " NEOBOOT - zainstalowano kernel-image - " $TARGET "Za chwile nastapi restart systemu !!!"
|
||||
fi
|
||||
echo "...............Shutdown Now..............."
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
sleep 5
|
||||
reboot -d -f
|
||||
else
|
||||
if [ $TARGET != "Flash" ]; then
|
||||
if [ -f /proc/stb/info/vumodel ] || [ ! -e /proc/stb/info/boxtype ] ; then
|
||||
if [ $VUMODEL = "bm750" ] || [ $VUMODEL = "duo" ] || [ $VUMODEL = "solo" ] || [ $VUMODEL = "uno" ] || [ $VUMODEL = "ultimo" ]; then
|
||||
if [ -e /.multinfo ] ; then
|
||||
INFOBOOT=$( cat /.multinfo )
|
||||
if [ $TARGET = $INFOBOOT ] ; then
|
||||
echo "NEOBOOT is booting image from " $TARGET
|
||||
else
|
||||
echo "Kasowanie kernel z /dev/mtd1"
|
||||
sleep 2
|
||||
flash_eraseall /dev/mtd1
|
||||
echo "Wgrywanie kernel do /dev/mtd1"
|
||||
sleep 2
|
||||
nandwrite -p /dev/mtd1 $NEOBOOTMOUNT$IMAGE/$TARGET/boot/$BOXNAME.vmlinux.gz
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Kernel dla potrzeb startu systemu " $TARGET " z procesorem mips zostal zmieniony!!!"
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo " NEOBOOT - zainstalowano kernel-image - " $TARGET "Za chwile nastapi restart systemu !!!"
|
||||
fi
|
||||
else
|
||||
echo "Kasowanie kernel z /dev/mtd1"
|
||||
sleep 2
|
||||
flash_eraseall /dev/mtd1
|
||||
echo "Wgrywanie kernel do /dev/mtd1"
|
||||
sleep 2
|
||||
nandwrite -p /dev/mtd1 $NEOBOOTMOUNT$IMAGE/$TARGET/boot/$BOXNAME.vmlinux.gz
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Kernel dla potrzeb startu systemu " $TARGET " z procesorem mips zostal zmieniony!!!"
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
fi
|
||||
echo "...............Shutdown Now..............."
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
sleep 5
|
||||
reboot -d -f
|
||||
fi
|
||||
fi
|
||||
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
|
||||
123
NeoBoot/tmpfiles/target/vu_dev_mtd2.sh
Normal file
123
NeoBoot/tmpfiles/target/vu_dev_mtd2.sh
Normal file
@@ -0,0 +1,123 @@
|
||||
#!/bin/sh
|
||||
#script - gutosie
|
||||
|
||||
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.ipk ]; then
|
||||
rm -f /tmp/zImage.ipk
|
||||
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
|
||||
# $NEOBOOTMOUNT$IMAGE
|
||||
# $NEOBOOTMOUNT
|
||||
|
||||
if [ -f $NEOBOOTMOUNT$IMAGENEXTBOOT ]; then
|
||||
TARGET=`cat $NEOBOOTMOUNT$IMAGENEXTBOOT`
|
||||
else
|
||||
TARGET=Flash
|
||||
fi
|
||||
|
||||
if [ $BOXNAME = "mbultra" ] || [ $CHIPSET = "bcm7424" ] || [ $VUMODEL = "solo2" ] || [ $VUMODEL = "duo2" ] || [ $VUMODEL = "solose" ] || [ $VUMODEL = "zero" ]; then
|
||||
if [ $TARGET = "Flash" ]; then
|
||||
if [ -e /.multinfo ]; then
|
||||
if [ -e $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXNAME.vmlinux.gz ] ; then
|
||||
echo "Kasowanie kernel z /dev/mtd2..."
|
||||
flash_eraseall /dev/mtd2
|
||||
sleep 2
|
||||
echo "Instalacja kernel do /dev/mtd2..."
|
||||
nandwrite -p /dev/mtd2 $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXNAME.vmlinux.gz
|
||||
update-alternatives --remove vmlinux vmlinux-$KERNEL || true
|
||||
fi
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "NEOBOOT is booting image from " $TARGET
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo " NEOBOOT - zainstalowano kernel-image - " $TARGET "Za chwile nastapi restart systemu !!!"
|
||||
|
||||
elif [ ! -e /.multinfo ]; then
|
||||
if [ -e $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXNAME.vmlinux.gz ] ; then
|
||||
echo "Kasowanie kernel z /dev/mtd2..."
|
||||
sleep 2
|
||||
flash_eraseall /dev/mtd2
|
||||
echo "Wgrywanie kernel do /dev/mtd2..."
|
||||
sleep 2
|
||||
nandwrite -p /dev/mtd2 $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXNAME.vmlinux.gz
|
||||
update-alternatives --remove vmlinux vmlinux-$KERNEL || true
|
||||
fi
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo " NEOBOOT - zainstalowano kernel-image - " $TARGET "Za chwile nastapi restart systemu !!!"
|
||||
fi
|
||||
echo "...............Shutdown Now..............."
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
sleep 5
|
||||
reboot -d -f
|
||||
else
|
||||
if [ $TARGET != "Flash" ]; then
|
||||
if [ -e /.multinfo ] ; then
|
||||
INFOBOOT=$( cat /.multinfo )
|
||||
if [ $TARGET = $INFOBOOT ] ; then
|
||||
echo "NEOBOOT is booting image from " $TARGET
|
||||
else
|
||||
echo "Przenoszenie pliku kernel do /tmp"
|
||||
sleep 2
|
||||
cp -f $NEOBOOTMOUNT$IMAGE/$TARGET/boot/$BOXNAME.vmlinux.gz /tmp/vmlinux.gz
|
||||
echo "Kasowanie kernel z /dev/mtd2"
|
||||
sleep 2
|
||||
flash_eraseall /dev/mtd2
|
||||
echo "Wgrywanie kernel do /dev/mtd2"
|
||||
sleep 2
|
||||
nandwrite -p /dev/mtd2 /tmp/vmlinux.gz
|
||||
rm -f //tmp/vmlinux.gz
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Kernel dla potrzeb startu systemu " $TARGET " z procesorem mips zostal zmieniony!!!"
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "Typ procesora: " $CHIPSET " STB"
|
||||
echo " NEOBOOT - zainstalowano kernel-image - " $TARGET "Za chwile nastapi restart systemu !!!"
|
||||
fi
|
||||
else
|
||||
echo "Przenoszenie pliku kernel do /tmp"
|
||||
sleep 2
|
||||
cp -f $NEOBOOTMOUNT$IMAGE/$TARGET/boot/$BOXNAME.vmlinux.gz /tmp/vmlinux.gz
|
||||
echo "Kasowanie kernel z /dev/mtd2"
|
||||
sleep 2
|
||||
flash_eraseall /dev/mtd2
|
||||
echo "Wgrywanie kernel do /dev/mtd2"
|
||||
sleep 2
|
||||
nandwrite -p /dev/mtd2 /tmp/vmlinux.gz
|
||||
rm -f /tmp/vmlinux.gz
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Kernel dla potrzeb startu systemu " $TARGET " z procesorem mips zostal zmieniony!!!"
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "Typ procesora: " $CHIPSET " STB"
|
||||
echo " NEOBOOT - zainstalowano kernel-image - " $TARGET "Za chwile nastapi restart systemu !!!"
|
||||
fi
|
||||
echo "...............shutdown now..............."; sleep 5; reboot -d -f -h -i
|
||||
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
|
||||
123
NeoBoot/tmpfiles/target/vu_mmcblk0p1.sh
Normal file
123
NeoBoot/tmpfiles/target/vu_mmcblk0p1.sh
Normal file
@@ -0,0 +1,123 @@
|
||||
#!/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`
|
||||
HARDWARETYPE=`uname -m`
|
||||
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 [ $BOXNAME = "vuultimo4k" ] || [ $BOXNAME = "vusolo4k" ] || [ $BOXNAME = "vuuno4kse" ] || [ $BOXNAME = "vuuno4k" ]; then
|
||||
if [ $TARGET = "Flash" ]; then
|
||||
INFOBOOT=$( cat /.multinfo )
|
||||
if [ $TARGET = $INFOBOOT ] ; then
|
||||
echo "NEOBOOT is booting image " $TARGET
|
||||
elif [ -e /.multinfo ]; then
|
||||
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p1......" || echo "Instaling kernel bin file /dev/mmcblk0p1... "
|
||||
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/mmcblk0p1
|
||||
fi
|
||||
echo "Boot - Flash. "
|
||||
echo "Start image Flash z dysku hdd lub usb za 5 sekund _RESTART_..."
|
||||
fi
|
||||
elif [ ! -e /.multinfo ]; then
|
||||
[ $PL ] && echo "Instalacja pliku kernel bin /dev/mmcblk0p1......" || echo "Instaling kernel bin file /dev/mmcblk0p1... "
|
||||
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/mmcblk0p1
|
||||
fi
|
||||
echo "Start-restart Flash image..."
|
||||
echo "Reboot image Flash za 5 sekund =RESTART=...; "
|
||||
fi
|
||||
fi
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
[ $PL ] && echo " Zainstalowano kernel image " $TARGET " " || echo " Installed kernel image - "$TARGET" "
|
||||
cat /dev/mmcblk0p1 | grep "kernel"
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "CHIPSET: " $CHIPSET " BOXNAME: "$BOXNAME" MODEL: "$VUMODEL" "
|
||||
echo "...............shutdown now..............."; sleep 5
|
||||
echo -n "Rebooting... "
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
reboot -d -f
|
||||
else
|
||||
if [ $TARGET != "Flash" ]; then
|
||||
if [ -e /.multinfo ] ; then
|
||||
INFOBOOT=$( cat /.multinfo )
|
||||
if [ $TARGET = $INFOBOOT ] ; then
|
||||
echo "NEOBOOT is booting image " $TARGET
|
||||
else
|
||||
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
|
||||
sleep 2
|
||||
cp -fR $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
|
||||
echo "Instalacja kernel do /dev/mmcblk0p1..."
|
||||
sleep 2
|
||||
if [ -d /proc/stb ] ; then
|
||||
dd if=/tmp/zImage of=/dev/mmcblk0p1
|
||||
fi
|
||||
echo "Start image z Flash..."
|
||||
echo "Kernels for image " $TARGET " changed..."
|
||||
echo "Start innego image z Flash za 5 sekund *RESTART*..."
|
||||
fi
|
||||
else
|
||||
[ $PL ] && echo "Przenoszenie pliku kernel do /tmp..." || echo "Moving the kernel file to..."
|
||||
sleep 2
|
||||
cp -fR $NEOBOOTMOUNT$IMAGE/$TARGET/boot/zImage.$BOXNAME /tmp/zImage
|
||||
echo "Instalacja kernel bin do /dev/mmcblk0p1..."
|
||||
sleep 2
|
||||
if [ -d /proc/stb ] ; then
|
||||
dd if=/tmp/zImage of=/dev/mmcblk0p1
|
||||
fi
|
||||
echo "Kernel dla potrzeb startu systemu " $TARGET " VU+ zmieniony."
|
||||
echo "Start innego image z Flash za 5 sekund -RESTART-..."
|
||||
fi
|
||||
rm -f /tmp/zImage
|
||||
cat /dev/mmcblk0p1 | grep "kernel"
|
||||
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
|
||||
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
|
||||
echo "CHIPSET:"$CHIPSET $HARDWARETYPE" BOXNAME:"$BOXNAME" MODEL:"$VUMODEL" "
|
||||
echo "...............Shutdown Now..............."; sleep 5
|
||||
echo -n "Rebooting... "
|
||||
sync && echo 3 > /proc/sys/vm/drop_caches
|
||||
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
|
||||
338
NeoBoot/unpack.py
Normal file
338
NeoBoot/unpack.py
Normal file
@@ -0,0 +1,338 @@
|
||||
# -*- 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.Console import Console
|
||||
#from files.nConsole import Console
|
||||
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 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 fileExists('/etc/vtiversion.info') and fileExists('/.multinfo'):
|
||||
from Screens.Console import Console
|
||||
else:
|
||||
from files.neoconsole import Console
|
||||
LinkNeoBoot = '/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot'
|
||||
|
||||
def getDS():
|
||||
s = getDesktop(0).size()
|
||||
return (s.width(), s.height())
|
||||
|
||||
def isFHD():
|
||||
desktopSize = getDS()
|
||||
return desktopSize[0] == 1920
|
||||
|
||||
def isHD():
|
||||
desktopSize = getDS()
|
||||
return desktopSize[0] >= 1280 and desktopSize[0] < 1920
|
||||
|
||||
def isUHD():
|
||||
desktopSize = getDS()
|
||||
return desktopSize[0] >= 1920 and desktopSize[0] < 3840
|
||||
|
||||
|
||||
def Freespace(dev):
|
||||
statdev = os.statvfs(dev)
|
||||
space = statdev.f_bavail * statdev.f_frsize / 1024
|
||||
print ('[NEOBoot] Free space on %s = %i kilobytes' % (dev, space))
|
||||
return space
|
||||
|
||||
class InstallImage(Screen, ConfigListScreen):
|
||||
if isFHD():
|
||||
skin = """<screen position="130,120" size="1650,875" title="NeoBoot - Installation">
|
||||
<eLabel position="41,107" size="1541,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel position="40,744" size="1545,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel text="NeoBoot opcje dla instalowanego obrazu" font="baslk; 38" position="40,24" size="1538,74" halign="center" foregroundColor="red" backgroundColor="black" transparent="1" />
|
||||
<widget name="config" position="38,134" size="1547,593" font="genel; 32" itemHeight="42" scrollbarMode="showOnDemand" transparent="1" backgroundColor="transpBlack" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/redcor.png" position="84,820" size="178,28" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/greencor.png" position="457,820" size="178,29" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellowcor.png" position="884,823" size="169,28" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/bluecor.png" position="1288,821" size="167,29" alphatest="on" />
|
||||
<widget name="HelpWindow" position="330,310" zPosition="5" size="1,1" transparent="1" alphatest="on" />
|
||||
<widget name="key_red" position="36,762" zPosition="1" size="284,53" font="baslk; 35" halign="center" valign="center" backgroundColor="#FF0000" transparent="1" foregroundColor="red" />
|
||||
<widget name="key_green" position="403,760" zPosition="1" size="293,55" font="baslk; 35" halign="center" valign="center" backgroundColor="#00FF00" transparent="1" foregroundColor="green" />
|
||||
<widget name="key_yellow" position="816,761" zPosition="1" size="295,54" font="baslk; 35" halign="center" valign="center" backgroundColor="#FFFF00" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="key_blue" position="1233,760" zPosition="1" size="272,56" font="baslk; 35" halign="center" valign="center" backgroundColor="#0000FF" transparent="1" foregroundColor="blue" />\
|
||||
</screen>"""
|
||||
else:
|
||||
skin = """<screen position="0,0" size="1280,720" title="NeoBoot - Installation">
|
||||
<ePixmap position="0,0" zPosition="-1" size="1280,720" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/1frame_base-fs8.png" />
|
||||
<eLabel text="NeoBoot opcje dla instalowanego obrazu" font="Regular; 28" position="10,30" size="700,30" halign="center" foregroundColor="#58ccff" backgroundColor="black" transparent="1" />
|
||||
<widget name="config" position="0,150" size="780,450" font="Regular; 22" itemHeight="32" scrollbarMode="showOnDemand" transparent="1" backgroundColor="transpBlack" />
|
||||
<widget name="HelpWindow" position="100,500" zPosition="5" size="1,1" transparent="1" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red25.png" position="0,650" size="250,40" alphatest="blend" />
|
||||
<widget name="key_red" position="0,670" zPosition="2" size="250,40" font="Regular; 24" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green25.png" position="200,650" size="230,36" alphatest="blend" />
|
||||
<widget name="key_green" position="200,670" size="230,38" zPosition="1" font="Regular; 24" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellow25.png" position="400,650" size="230,36" alphatest="blend" />
|
||||
<widget name="key_yellow" position="400,670" size="230,38" zPosition="1" font="Regular; 24" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<widget name="key_blue" position="601,670" zPosition="1" size="230,38" font="baslk; 24" halign="center" valign="center" backgroundColor="#0000FF" transparent="1" foregroundColor="blue" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/blue25.png" position="600,650" size="230,36" alphatest="blend" />
|
||||
<widget source="session.VideoPicture" render="Pig" position=" 836,89" size="370,208" zPosition="3" backgroundColor="#ff000000"/>
|
||||
<ePixmap position="920,500" zPosition="1" size="228,130" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/1matrix.png" />
|
||||
</screen>"""
|
||||
|
||||
def __init__(self, session):
|
||||
Screen.__init__(self, session)
|
||||
fn = 'NewImage'
|
||||
sourcelist = []
|
||||
for fn in os.listdir('%sImagesUpload' % getNeoLocation() ):
|
||||
if fn.find('.zip') != -1:
|
||||
fn = fn.replace('.zip', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.tar.xz') != -1:
|
||||
fn = fn.replace('.tar.xz', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.tar.gz') != -1:
|
||||
fn = fn.replace('.tar.gz', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.mb') != -1:
|
||||
fn = fn.replace('.mb', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if fn.find('.nfi') != -1:
|
||||
fn = fn.replace('.nfi', '')
|
||||
sourcelist.append((fn, fn))
|
||||
continue
|
||||
if len(sourcelist) == 0:
|
||||
sourcelist = [('None', 'None')]
|
||||
self.source = ConfigSelection(choices=sourcelist)
|
||||
self.target = ConfigText(fixed_size=False)
|
||||
self.stopenigma = ConfigYesNo(default=False)
|
||||
self.CopyFiles = ConfigYesNo(default=True)
|
||||
self.CopyKernel = ConfigYesNo(default=True)
|
||||
self.TvList = ConfigYesNo(default=False)
|
||||
self.LanWlan = ConfigYesNo(default=False)
|
||||
self.Sterowniki = ConfigYesNo(default=False)
|
||||
self.InstallSettings = ConfigYesNo(default=False)
|
||||
self.ZipDelete = ConfigYesNo(default=False)
|
||||
self.RepairFTP = ConfigYesNo(default=False)
|
||||
self.SoftCam = ConfigYesNo(default=False)
|
||||
self.MediaPortal = ConfigYesNo(default=False)
|
||||
self.BlackHole = ConfigYesNo(default=False)
|
||||
self.target.value = ''
|
||||
self.curselimage = ''
|
||||
try:
|
||||
if self.curselimage != self.source.value:
|
||||
self.target.value = self.source.value[:-13]
|
||||
self.curselimage = self.source.value
|
||||
except:
|
||||
pass
|
||||
|
||||
self.createSetup()
|
||||
ConfigListScreen.__init__(self, self.list, session=session)
|
||||
self.source.addNotifier(self.typeChange)
|
||||
self['actions'] = ActionMap(['OkCancelActions',
|
||||
'ColorActions',
|
||||
'CiSelectionActions',
|
||||
'VirtualKeyboardActions'], {'cancel': self.cancel,
|
||||
'red': self.cancel,
|
||||
'green': self.imageInstall,
|
||||
'yellow': self.HelpInstall,
|
||||
'blue': self.openKeyboard}, -2)
|
||||
self['key_green'] = Label(_('Install'))
|
||||
self['key_red'] = Label(_('Cancel'))
|
||||
self['key_yellow'] = Label(_('Help'))
|
||||
self['key_blue'] = Label(_('Keyboard'))
|
||||
self['HelpWindow'] = Pixmap()
|
||||
self['HelpWindow'].hide()
|
||||
|
||||
def createSetup(self):
|
||||
self.list = []
|
||||
self.list.append(getConfigListEntry(_('Source Image file'), self.source))
|
||||
self.list.append(getConfigListEntry(_('Image Name'), self.target))
|
||||
self.list.append(getConfigListEntry(_('Stop E2 processes during installation?'), self.stopenigma))
|
||||
self.list.append(getConfigListEntry(_('Copy files from Flash to the installed image ?'), self.CopyFiles ))
|
||||
self.list.append(getConfigListEntry(_('Copy the kernel of the installed system (recommended ?'), self.CopyKernel ))
|
||||
self.list.append(getConfigListEntry(_('Copy the channel list ?'), self.TvList))
|
||||
self.list.append(getConfigListEntry(_('Copy network settings LAN-WLAN ?'), self.LanWlan))
|
||||
self.list.append(getConfigListEntry(_('Copy the drivers ? (Recommended only other image.)'), self.Sterowniki))
|
||||
self.list.append(getConfigListEntry(_('Copy Settings to the new Image'), self.InstallSettings))
|
||||
self.list.append(getConfigListEntry(_('Delete Image zip after Install ?'), self.ZipDelete))
|
||||
self.list.append(getConfigListEntry(_('Repair FTP ? (Recommended only other image if it does not work.)'), self.RepairFTP))
|
||||
self.list.append(getConfigListEntry(_('Copy config SoftCam ?'), self.SoftCam))
|
||||
self.list.append(getConfigListEntry(_('Copy MediaPortal ?'), self.MediaPortal))
|
||||
self.list.append(getConfigListEntry(_('Path BlackHole ? (Not recommended for VuPlus)'), self.BlackHole))
|
||||
|
||||
def HelpInstall(self):
|
||||
self.session.open(HelpInstall)
|
||||
|
||||
def typeChange(self, value):
|
||||
self.createSetup()
|
||||
self['config'].l.setList(self.list)
|
||||
if self.curselimage != self.source.value:
|
||||
self.target.value = self.source.value[:-13]
|
||||
self.curselimage = self.source.value
|
||||
|
||||
def openKeyboard(self):
|
||||
sel = self['config'].getCurrent()
|
||||
if sel:
|
||||
if sel == self.target:
|
||||
if self['config'].getCurrent()[1].help_window.instance is not None:
|
||||
self['config'].getCurrent()[1].help_window.hide()
|
||||
self.vkvar = sel[0]
|
||||
if self.vkvar == _('Image Name'):
|
||||
self.session.openWithCallback(self.VirtualKeyBoardCallback, VirtualKeyBoard, title=self['config'].getCurrent()[0], text=self['config'].getCurrent()[1].value)
|
||||
return
|
||||
|
||||
def VirtualKeyBoardCallback(self, callback = None):
|
||||
if callback is not None and len(callback):
|
||||
self['config'].getCurrent()[1].setValue(callback)
|
||||
self['config'].invalidate(self['config'].getCurrent())
|
||||
return
|
||||
|
||||
def imageInstall(self):
|
||||
if self.check_free_space():
|
||||
pluginpath = '' + LinkNeoBoot + ''
|
||||
myerror = ''
|
||||
source = self.source.value.replace(' ', '')
|
||||
target = self.target.value.replace(' ', '')
|
||||
for fn in os.listdir('%sImageBoot' % getNeoLocation()):
|
||||
if fn == target:
|
||||
myerror = _('Sorry, an Image with the name ') + target + _(' is already installed.\n Please try another name.')
|
||||
continue
|
||||
|
||||
if source == 'None':
|
||||
myerror = _('You have to select one Image to install.\nPlease, upload your zip file in the folder: %sImagesUpload and select the image to install.')
|
||||
if target == '':
|
||||
myerror = _('You have to provide a name for the new Image.')
|
||||
if target == 'Flash':
|
||||
myerror = _('Sorry this name is reserved. Choose another name for the new Image.')
|
||||
if len(target) > 30:
|
||||
myerror = _('Sorry the name of the new Image is too long.')
|
||||
if myerror:
|
||||
myerror
|
||||
self.session.open(MessageBox, myerror, MessageBox.TYPE_INFO)
|
||||
else:
|
||||
myerror
|
||||
message = "echo -e '"
|
||||
message += _('NeoBot started installing new image.\n')
|
||||
message += _('The installation process may take a few minutes.\n')
|
||||
message += _('Please: DO NOT reboot your STB and turn off the power.\n')
|
||||
message += _('Please, wait...\n')
|
||||
message += "'"
|
||||
cmd1 = 'python ' + pluginpath + '/ex_init.py'
|
||||
cmd = '%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s ' % (cmd1,
|
||||
source,
|
||||
target.replace(' ', '.'),
|
||||
str(self.stopenigma.value),
|
||||
str(self.CopyFiles.value),
|
||||
str(self.CopyKernel.value),
|
||||
str(self.TvList.value),
|
||||
str(self.LanWlan.value),
|
||||
str(self.Sterowniki.value),
|
||||
str(self.InstallSettings.value),
|
||||
str(self.ZipDelete.value),
|
||||
str(self.RepairFTP.value),
|
||||
str(self.SoftCam.value),
|
||||
str(self.MediaPortal.value),
|
||||
str(self.BlackHole.value))
|
||||
print '[NEO-BOOT]: ', cmd
|
||||
from Plugins.Extensions.NeoBoot.plugin import PLUGINVERSION
|
||||
self.session.open(Console, _('NeoBoot v.%s - Install new image') % PLUGINVERSION, [message, cmd])
|
||||
|
||||
def check_free_space(self):
|
||||
if Freespace('%s' % getNeoLocation()) < 300000:
|
||||
self.session.open(MessageBox, _('Not enough free space on /media/ !!\nYou need at least 300Mb free space.\n\nExit plugin.'), type=MessageBox.TYPE_ERROR)
|
||||
return False
|
||||
return True
|
||||
|
||||
def cancel(self):
|
||||
self.close()
|
||||
|
||||
|
||||
class HelpInstall(Screen):
|
||||
screenwidth = getDesktop(0).size().width()
|
||||
if screenwidth and screenwidth == 1920:
|
||||
skin = """<screen position="center,center" size="1920,1080" flags="wfNoBorder">
|
||||
<eLabel text="Informacje instalacji image w NeoBoot" font="baslk; 35" position="71,20" size="1777,112" halign="center" foregroundColor="yellow" backgroundColor="black" transparent="1" />
|
||||
<widget name="lab1" position="69,134" size="1780,913" font="baslk;35" />
|
||||
</screen>"""
|
||||
else:
|
||||
skin = """<screen position="center,center" size="1280,720" title="NeoBoot - Informacje">
|
||||
<widget name="lab1" position="18,19" size="1249,615" font="Regular;20" backgroundColor="black" transparent="1" />
|
||||
</screen>"""
|
||||
__module__ = __name__
|
||||
|
||||
def __init__(self, session):
|
||||
Screen.__init__(self, session)
|
||||
self['lab1'] = ScrollLabel('')
|
||||
self['actions'] = ActionMap(['WizardActions', 'ColorActions', 'DirectionActions'], {'back': self.close,
|
||||
'ok': self.close,
|
||||
'up': self['lab1'].pageUp,
|
||||
'left': self['lab1'].pageUp,
|
||||
'down': self['lab1'].pageDown,
|
||||
'right': self['lab1'].pageDown})
|
||||
self['lab1'].hide()
|
||||
self.updatetext()
|
||||
|
||||
def updatetext(self):
|
||||
|
||||
message = _('Source Image file')
|
||||
message += _(' - Select the software to be installed with the cursor (left or right).\n\n')
|
||||
|
||||
message += _('Image Name')
|
||||
message += _(' - to change, press blue on the remote control.\n\n')
|
||||
|
||||
message += _('Copy files from Flash to the installed image ?')
|
||||
message += _(' - this checking this option on it nothing will be copied from the image flash to the installed image in neoboot.\n\n')
|
||||
|
||||
message += _('Copy the kernel of the installed system (recommended ?')
|
||||
message += _('- after selecting this option, the kernel of the installed image will be copied to neoboot, only recommended for STB vuplus\n\n')
|
||||
|
||||
message += _('Copy the channel list ?')
|
||||
message += _(' - Option to copy channel list from flash to image installed in neoboot.\n\n')
|
||||
|
||||
message += _('Copy mounting disks ? (Recommended)')
|
||||
message += _(' - the option transfers mounts to the image installed in neoboot from the flashlight, recommended only if you are installing an image from a different model than you have.\n\n')
|
||||
|
||||
message += _('Copy network settings LAN-WLAN ?')
|
||||
message += _(' - the option moves files with the settings for lan and wlan.\n\n')
|
||||
|
||||
message += _('Copy the drivers ? (Recommended only other image.)')
|
||||
message += _(' - Option to copy drivers to the image installed in neoboot from the flashlight, recommended only if you are installing an image from a different model than you have.\n\n')
|
||||
|
||||
message += _('Copy Settings to the new Image')
|
||||
message += _(' - the option copies the software settings from the flashlight to the system being installed in the neobot.\n\n')
|
||||
|
||||
message += _('Delete Image zip after Install ?')
|
||||
message += _(' - po instalacji, opcja kasuje plik zip image z katalogu ImagesUpload.\n\n')
|
||||
|
||||
message += _('Repair FTP ? (Recommended only other image if it does not work.)')
|
||||
message += _(' - the option in some cases repairs the File Transfer Protocol connection in the installed image.\n\n')
|
||||
|
||||
message += _('Copy config SoftCam ?')
|
||||
message += _(' - the option copies oscam configi and cccam, openpli default.\n\n')
|
||||
|
||||
message += _('Path BlackHole ? (Not recommended for VuPlus)')
|
||||
message += _(' - option for image blackhole, helps to run BH in neoboot\n\n')
|
||||
|
||||
self['lab1'].show()
|
||||
self['lab1'].setText(message)
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
# skin = ./meoskins/defaul_skin - gutosie
|
||||
# neo = /neoskins/neo/neo_skin.py - gutosie
|
||||
|
||||
from Screens.Screen import Screen
|
||||
from Components.Pixmap import Pixmap
|
||||
import os
|
||||
|
||||
|
||||
#Colors (#AARRGGBB)
|
||||
#____Recommended colors - Zalecane kolory :
|
||||
#color name="white" value="#ffffff"
|
||||
@@ -15,305 +16,112 @@ import os
|
||||
#color name="orange" value="#00ffa500"
|
||||
#color name="gray" value="#808080"
|
||||
#color name="lightgrey" value="#009b9b9b"
|
||||
# green = '#00389416' lub #00389416
|
||||
# red = '#00ff2525'
|
||||
# yellow = '#00ffe875'
|
||||
# orange = '#00ff7f50'
|
||||
# seledynowy = #00FF00
|
||||
# jasny-blue = #99FFFF
|
||||
|
||||
# Zamiast font=Regular ktory nie rozpoznaje polskich znakow np. na VTi, mozesz zmienic na ponizsze font="*:
|
||||
# font - genel
|
||||
# font - baslk
|
||||
# font - tasat
|
||||
# font - dugme
|
||||
# font genel
|
||||
# font baslk
|
||||
# font tasat
|
||||
# font dugme
|
||||
|
||||
# <widget name="config" position="1177,256" size="703,717" itemHeight="43" font="genel;30" scrollbarMode="showOnDemand" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" foregroundColorSelected="#00FFFFF" backgroundColorSelected="#1A27408B" scrollbarSliderBorderWidth="1" scrollbarWidth="8" scrollbarSliderForegroundColor="#00FFFFFF" scrollbarSliderBorderColor="#0027408B" enableWrapAround="1" transparent="1" />
|
||||
#jak by chcial ktos wlasny selektor, to przyklad:
|
||||
# <widget name="label19" position="73,422" size="596,25" font="tasat;22" halign="left" valign="center" zPosition="1" backgroundColor="black" transparent="1" foregroundColor="orange" />
|
||||
|
||||
###____ Skin Ultra HD - ImageChooseFULLHD ___ mod. gutosie___
|
||||
### ImageChooseFULLHD
|
||||
ImageChooseFULLHD ="""
|
||||
<screen name="ImageChooseFULLHD" position="center,center" size="1920,1080" title=" " flags="wfNoBorder" backgroundColor="transparent">
|
||||
<eLabel backgroundColor="black" font="dugme; 30" foregroundColor="#99FFFF" position="70,50" size="298,55" valign="center" text="NEOBoot Multi-image" transparent="1" />
|
||||
<widget name="config" position="1177,250" size="668,715" selectionPixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/selektor.png" itemHeight="45" font="dugme;30" scrollbarMode="showOnDemand" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" foregroundColorSelected="#00FFFFF" backgroundColorSelected="#1A27408B" scrollbarSliderBorderWidth="1" scrollbarWidth="8" scrollbarSliderForegroundColor="#99FFFF" scrollbarSliderBorderColor="#0027408B" enableWrapAround="1" transparent="1" />
|
||||
<widget name="progreso" position="590,600" size="542,10" borderWidth="1" zPosition="3" />
|
||||
<ePixmap position="-76,0" zPosition="-7" size="1997,1078" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/skin.png" />
|
||||
<ePixmap position="54,981" zPosition="-7" size="1809,55" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek.png" />
|
||||
<ePixmap position="71,903" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="71,820" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="71,736" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="70,655" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="64,417" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="587,631" zPosition="-2" size="545,340" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/matrix.png" />
|
||||
<ePixmap position="1170,186" size="45,64" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/updown.png" alphatest="on" />
|
||||
<eLabel position="70,155" size="1075,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel position="70,395" size="1075,2" backgroundColor="blue" foregroundColor="blue" name="linia2" />
|
||||
<widget name="device_icon" position="131,490" size="176,136" alphatest="on" zPosition="2" />
|
||||
<widget name="key_red" position="130,990" zPosition="1" size="507,38" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00ff0d0d" />
|
||||
<widget name="key_green" position="690,990" zPosition="1" size="334,38" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00FF00" />
|
||||
<widget name="key_yellow" position="1085,990" zPosition="1" size="480,38" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="key_blue" position="1620,990" zPosition="1" size="240,38" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#0000cbf6" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" position="80,990" size="34,38" zPosition="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green.png" position="640,990" size="34,38" zPosition="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellow.png" position="1035,990" size="34,38" zPosition="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/blue.png" position="1570,990" size="34,38" zPosition="1" alphatest="blend" />
|
||||
<widget name="key_menu" position="230,425" zPosition="1" size="300,30" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00ffe875" />
|
||||
<ePixmap position="80,426" size="75,31" zPosition="10" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/menu.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap position="158,427" size="70,31" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/arrowleft.png" alphatest="blend" zPosition="3" />
|
||||
<eLabel backgroundColor="black" font="dugme; 30" foregroundColor="#00dddddd" position="85,660" size="59,45" valign="center" text="1 >" transparent="1" />
|
||||
<eLabel backgroundColor="black" font="dugme; 30" foregroundColor="#00dddddd" position="85,742" size="59,45" valign="center" text="2 >" transparent="1" />
|
||||
<eLabel backgroundColor="black" font="dugme; 30" foregroundColor="#00dddddd" position="85,826" size="61,45" valign="center" text="3 >" transparent="1" />
|
||||
<widget name="key_1" position="150,660" zPosition="1" size="425,45" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="red" />
|
||||
<widget name="key_2" position="150,742" zPosition="1" size="423,45" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00FF00" />
|
||||
<widget name="key_3" position="150,826" zPosition="1" size="425,45" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="label1" position="1179,147" size="661,99" zPosition="1" halign="center" font="dugme;33" foregroundColor="red" backgroundColor="black" transparent="1" />
|
||||
<widget name="label2" position="70,164" zPosition="1" size="561,66" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<widget name="label3" position="505,475" zPosition="1" size="625,110" font="dugme;28" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="label4" position="70,244" zPosition="1" size="476,66" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<widget name="label5" position="951,164" zPosition="1" size="191,66" font="dugme;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00ffe875" />
|
||||
<widget name="label16" position="1169,50" zPosition="1" size="186,55" font="dugme;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#99FFFF" />
|
||||
<widget name="label7" position="1073,323" zPosition="1" size="71,66" font="dugme;30" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00FF00" />
|
||||
<widget name="label8" position="70,324" zPosition="1" size="1000,66" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<widget name="label10" position="1028,421" zPosition="1" size="102,50" font="dugme;30" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="label13" position="699,421" zPosition="1" size="316,50" font="dugme;30" halign="right" valign="center" backgroundColor="black" transparent="1"/>
|
||||
<widget name="label14" position="552,50" zPosition="1" size="281,55" font="dugme;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#99FFFF" />
|
||||
<widget name="label15" position="322,586" zPosition="1" size="265,42" font="dugme;30" halign="center" valign="right" backgroundColor="black" transparent="1" />
|
||||
<widget name="label6" position="551,235" zPosition="1" size="593,85" font="dugme;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="label17" position="674,162" size="274,66" font="dugme;30" halign="right" valign="center" zPosition="1" backgroundColor="black" transparent="1" foregroundColor="#00ffe875" />
|
||||
<widget name="label9" position="845,47" zPosition="1" size="306,56" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="label19" position="80,907" size="502,45" font="dugme;25" halign="left" valign="center" zPosition="1" backgroundColor="black" transparent="1" foregroundColor="orange" />
|
||||
<widget name="label20" position="1368,50" zPosition="1" size="537,55" font="dugme;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="label21" position="371,49" size="179,56" font="dugme;30" halign="center" valign="center" zPosition="1" backgroundColor="black" transparent="1" foregroundColor="#00ff7f50" />
|
||||
<screen name="NeoBootImageChoose" position="center,center" size="1920,1080" title=" " flags="wfNoBorder" backgroundColor="transparent">
|
||||
<eLabel backgroundColor="black" font="tasat;30" foregroundColor="red" position="75,50" size="309,45" valign="center" text="NEOBoot Multi-image" transparent="1" />
|
||||
|
||||
<ePixmap position="-75,0" zPosition="-7" size="1996,1078" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/skin.png" />
|
||||
<ePixmap position="54,981" zPosition="-7" size="1809,55" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek.png" />
|
||||
<ePixmap position="71,890" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="71,803" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="71,727" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="70,652" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="64,410" zPosition="-7" size="509,54" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/pasek2.png" />
|
||||
<ePixmap position="1170,186" size="45,64" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/updown.png" alphatest="on" />
|
||||
|
||||
</screen>
|
||||
<eLabel position="70,152" size="1075,2" backgroundColor="blue" name="linia" />
|
||||
<eLabel position="70,395" size="1075,2" backgroundColor="blue" name="linia2" />
|
||||
<widget name="device_icon" position="355,465" size="185,115" alphatest="on" zPosition="2" />
|
||||
<ePixmap position="70,471" size="275,179" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/1matrix.png" alphatest="blend" zPosition="3" />
|
||||
|
||||
<widget source="session.VideoPicture" render="Pig" position="588,625" size="545,340" backgroundColor="transparent" zPosition="1" />
|
||||
|
||||
<widget name="key_red" position="130,990" zPosition="1" size="505,38" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00dddddd" />
|
||||
<widget name="key_green" position="690,990" zPosition="1" size="328,38" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00dddddd" />
|
||||
<widget name="key_yellow" position="1085,990" zPosition="1" size="476,38" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00dddddd" />
|
||||
<widget name="key_blue" position="1620,990" zPosition="1" size="240,38" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00dddddd" />
|
||||
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red.png" position="80,990" size="34,38" zPosition="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green.png" position="640,990" size="34,38" zPosition="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellow.png" position="1035,990" size="34,38" zPosition="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/blue.png" position="1570,990" size="34,38" zPosition="1" alphatest="blend" />
|
||||
|
||||
#Window image selection - Okno wyboru image
|
||||
<widget name="config" selectionPixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/selektor.png" position="1175,256" size="680,689" itemHeight="45" font="dugme;30" scrollbarMode="showOnDemand" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" foregroundColorSelected="#00FFFFF" backgroundColorSelected="#1A27408B" scrollbarSliderBorderWidth="1" scrollbarWidth="8" scrollbarSliderForegroundColor="#99FFFF" scrollbarSliderBorderColor="#0027408B" enableWrapAround="1" transparent="1" />
|
||||
|
||||
#Used Kernel:
|
||||
<widget name="label19" position="73,422" size="596,25" font="tasat;22" halign="left" valign="center" zPosition="1" backgroundColor="black" transparent="1" foregroundColor="orange" />
|
||||
|
||||
#More options - Menu
|
||||
<ePixmap position="70,898" size="55,40" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/key_menu.png" alphatest="blend" zPosition="3" />
|
||||
<ePixmap position="150,902" size="66,35" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/arrowleft.png" alphatest="blend" zPosition="3" />
|
||||
<widget name="key_menu" position="232,895" zPosition="1" size="343,40" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="blue" />
|
||||
|
||||
#key 1> 2> 3>
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/key_1.png" alphatest="blend" position="65,657" size="55,40" zPosition="3" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/key_2.png" alphatest="blend" position="65,732" size="55,40" zPosition="3" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/key_3.png" alphatest="blend" position="65,807" size="55,40" zPosition="3" />
|
||||
<widget name="key_1" position="130,657" zPosition="1" size="445,45" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="red" />
|
||||
<widget name="key_2" position="130,732" zPosition="1" size="445,45" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="green" />
|
||||
<widget name="key_3" position="130,807" zPosition="1" size="445,45" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
|
||||
#Please choose an image to boot
|
||||
<widget name="label1" position="1177,150" size="703,105" zPosition="1" halign="left" font="tasat;30" foregroundColor="red" backgroundColor="black" transparent="1" />
|
||||
|
||||
#NeoBoot is running from:
|
||||
<widget name="label2" position="70,164" zPosition="1" size="538,66" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00dddddd" />
|
||||
<widget name="label5" position="837,164" zPosition="1" size="305,66" font="tasat;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00ffa500" />
|
||||
|
||||
#NeoBoot is running image:
|
||||
<widget name="label4" position="70,245" zPosition="1" size="505,65" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00dddddd" />
|
||||
<widget name="label6" position="580,235" zPosition="1" size="565,82" font="tasat;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00f23d21" />
|
||||
|
||||
#Memory disc: - Pamiec dysku
|
||||
<widget name="label15" position="345,585" zPosition="1" size="240,40" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00ffa500" />
|
||||
<widget name="progreso" position="587,600" size="552,10" borderWidth="1" zPosition="3" foregroundColor="#00ffa500" />
|
||||
|
||||
#Number of images installed:
|
||||
<widget name="label8" position="70,324" zPosition="1" size="987,66" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00dddddd" />
|
||||
<widget name="label7" position="1060,324" zPosition="1" size="85,66" font="tasat;30" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="#00ff7f50" />
|
||||
|
||||
#Version update:
|
||||
<widget name="label13" position="675,415" zPosition="1" size="345,40" font="tasat;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="green" />
|
||||
#UPDATEVERSION
|
||||
<widget name="label10" position="1030,415" zPosition="1" size="100,40" font="tasat;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="red" />
|
||||
|
||||
#NeoBoot version:
|
||||
<widget name="label14" position="532,50" zPosition="1" size="302,45" font="tasat;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#009b9b9b" />
|
||||
#PLUGINVERSION
|
||||
<widget name="label9" position="847,50" zPosition="1" size="315,45" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#808080" />
|
||||
|
||||
#Kernel Version
|
||||
<widget name="label16" position="1171,50" zPosition="1" size="114,45" font="tasat;30" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#009b9b9b" />
|
||||
#KERNELVERSION
|
||||
<widget name="label20" position="1302,50" zPosition="1" size="608,45" font="tasat;30" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#808080" />
|
||||
|
||||
#hostname
|
||||
<widget name="label17" position="619,164" size="213,66" font="tasat;30" halign="right" valign="center" zPosition="1" backgroundColor="black" transparent="1" foregroundColor="#00ff7f50" />
|
||||
|
||||
#Memory - Used: Available:
|
||||
<widget name="label3" position="533,465" zPosition="1" size="612,120" font="tasat;30" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
|
||||
#VIP
|
||||
<widget name="label21" position="384,49" size="148,45" font="dugme;30" halign="center" valign="center" zPosition="1" backgroundColor="black" transparent="1" foregroundColor="#00ff7f50" />
|
||||
|
||||
</screen>
|
||||
"""
|
||||
|
||||
|
||||
###____ Skin Ultra HD - ImageChooseULTRAHD ___ mod. gutosie___
|
||||
ImageChooseULTRAHD ="""
|
||||
<screen name="NeoBootImageChoose" position="0,0" size="3840,2160" flags="wfNoBorder" backgroundColor="#ff111111">
|
||||
<widget source="Title" render="Label" position="174,108" size="1575,150" font="baslk;102" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" noWrap="1" transparent="1" />
|
||||
<widget name="label1" position="210,360" size="2100,90" font="genel;60" foregroundColor="#00DAA520" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="config" position="210,480" size="2100,510" itemHeight="102" font="genel;60" scrollbarMode="showOnDemand" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" foregroundColorSelected="#00FFFFF" backgroundColorSelected="#1A27408B" scrollbarSliderBorderWidth="1" scrollbarWidth="8" scrollbarSliderForegroundColor="#00FFFFFF" scrollbarSliderBorderColor="#0027408B" enableWrapAround="1" transparent="1" />
|
||||
<eLabel position="210,1020" size="2100,3" backgroundColor="#0027408B" />
|
||||
<widget name="label2" position="252,1050" size="780,90" font="genel;60" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="right" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label4" position="252,1140" size="780,90" font="genel;60" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="right" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label8" position="252,1230" size="780,90" font="genel;60" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="right" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label5" position="1062,1050" size="1230,90" font="genel;60" foregroundColor="#0058CCFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label6" position="1062,1140" size="1230,90" font="genel;60" foregroundColor="#0058CCFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="label7" position="1062,1230" size="1230,90" font="genel;60" foregroundColor="#0058CCFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<eLabel position="210,1350" size="2100,3" backgroundColor="#0027408B" />
|
||||
<ePixmap position="210,1410" size="90,90" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/key_1_UHD.png" zPosition="1" alphatest="blend" />
|
||||
<ePixmap position="210,1512" size="90,90" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/key_2_UHD.png" zPosition="1" alphatest="blend" />
|
||||
<ePixmap position="210,1614" size="90,90" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/key_3_UHD.png" zPosition="1" alphatest="blend" />
|
||||
<widget position="330,1410" size="660,78" name="key_1" font="genel;60" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget position="330,1512" size="660,78" name="key_2" font="genel;60" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget position="330,1614" size="660,78" name="key_3" font="genel;60" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="device_icon" position="1110,1428" size="216,252" zPosition="1" transparent="1" alphatest="blend" />
|
||||
<widget name="label3" position="1410,1428" size="900,90" font="genel;60" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<widget name="progreso" position="1416,1536" size="660,33" borderWidth="0" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" zPosition="2" transparent="1" />
|
||||
<eLabel position="1416,1551" size="660,3" backgroundColor="#00FFFFFF" zPosition="1" />
|
||||
<widget name="label11" position="1410,1578" size="900,90" font="genel;60" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" halign="left" valign="center" zPosition="1" transparent="1" />
|
||||
<ePixmap position="2850,1800" size="243,120" zPosition="10" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/bt_menu_UHD.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap position="3135,1800" size="243,120" zPosition="10" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/bt_ok_UHD.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap position="3420,1800" size="243,120" zPosition="10" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/bt_exit_UHD.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_red_UHD.png" position="105,1905" size="90,120" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_green_UHD.png" position="654,1905" size="90,120" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_yellow_UHD.png" position="1203,1905" size="90,120" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_blue_UHD.png" position="1752,1905" size="90,120" alphatest="blend" />
|
||||
<widget name="key_red" position="210,1914" size="510,90" noWrap="1" zPosition="1" valign="center" font="dugme;60" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_green" position="759,1914" size="510,90" noWrap="1" zPosition="1" valign="center" font="dugme;60" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_yellow" position="1308,1914" size="510,90" noWrap="1" zPosition="1" valign="center" font="dugme;60" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_blue" position="1857,1914" size="510,90" noWrap="1" zPosition="1" valign="center" font="dugme;60" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<eLabel position="120,75" zPosition="-10" size="2265,1950" backgroundColor="#1A0F0F0F" name="layer1" />
|
||||
<eLabel position="2385,180" zPosition="-10" size="1335,1740" backgroundColor="#1A27408B" name="layer2" />
|
||||
<ePixmap position="2700,600" size="768,258" zPosition="5" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/logo.png" transparent="1" alphatest="blend" />
|
||||
<widget source="global.CurrentTime" render="Label" position="1956,90" size="420,180" font="tasat;150" noWrap="1" halign="center" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1">
|
||||
<convert type="ClockToText">Default</convert></widget>
|
||||
<widget source="global.CurrentTime" render="Label" position="1536,90" size="420,81" font="tasat;48" noWrap="1" halign="right" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1">
|
||||
<convert type="ClockToText">Format:%A</convert></widget>
|
||||
<widget source="global.CurrentTime" render="Label" position="1536,162" size="420,81" font="tasat;48" noWrap="1" halign="right" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1">
|
||||
<convert type="ClockToText">Format:%e. %b.</convert>
|
||||
</widget>
|
||||
</screen>"""
|
||||
|
||||
###ImageChoose-HD
|
||||
|
||||
###____ Skin HD - ImageChoose ___mod. gutosie ___
|
||||
ImageChooseHD ="""
|
||||
<screen name="NeoBootImageChoose" position="center,center" size="1280, 720" backgroundColor="transpBlack">
|
||||
<ePixmap position="0,0" zPosition="-1" size="1274,720" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/1frame_base-fs8.png" />
|
||||
<widget source="session.VideoPicture" render="Pig" position=" 836,89" size="370,208" zPosition="3" backgroundColor="#ff000000" />
|
||||
<ePixmap position="870,304" zPosition="-1" size="300,14" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/1chan_p1_bar.png" alphatest="on" />
|
||||
<widget source="Title" render="Label" position="12,5" size="788,30" font="Regular;28" halign="left" foregroundColor="#58bcff" backgroundColor="transpBlack" transparent="1" />
|
||||
<widget name="label9" position="818,4" zPosition="10" size="385,30" font="Regular;24" foregroundColor="#58bcff" backgroundColor="black" halign="left" transparent="1" />
|
||||
<widget selectionPixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/slekvti.png" name="config" enableWrapAround="1" position="30,150" size="270,370" itemHeight="25" font="Regular;18" zPosition="2" foregroundColor="#00cc99" scrollbarMode="showNever" transparent="1" />
|
||||
<widget name="device_icon" position="470,71" size="177,132" alphatest="on" zPosition="2" />
|
||||
<ePixmap position="20,135" zPosition="1" size="280,400" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/border_menu1.png" />
|
||||
<widget name="progreso" position="369,216" size="377,11" borderWidth="1" zPosition="3" foregroundColor="white" />
|
||||
<widget name="label3" position="328,232" zPosition="1" size="477,60" font="Regular;20" halign="center" valign="center" backgroundColor="black" transparent="1" foregroundColor="#58ccff" />
|
||||
<ePixmap position="319,426" zPosition="4" size="500,4" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/separator.png" alphatest="blend" transparent="1" />
|
||||
<ePixmap position="319,310" zPosition="4" size="500,4" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/separator.png" alphatest="blend" transparent="1" />
|
||||
<widget name="label2" position="320,340" zPosition="1" size="275,26" font="Regular;20" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<widget name="label5" position="600,339" zPosition="1" size="164,27" font="Regular;20" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#58ccff" />
|
||||
<widget name="label4" position="25,597" zPosition="1" size="319,25" font="Regular;20" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="red" />
|
||||
<widget name="label6" position="346,597" zPosition="1" size="444,25" font="Regular;20" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="red" />
|
||||
<widget name="label8" position="320,381" zPosition="1" size="378,25" font="Regular;20" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<widget name="label7" position="700,381" zPosition="1" size="66,25" font="Regular;20" halign="right" valign="center" backgroundColor="black" transparent="1" foregroundColor="#58ccff" />
|
||||
<eLabel backgroundColor="black" font="Regular; 20" foregroundColor="#58ccff" position="319,450" size="51,25" text="1 >" transparent="1" />
|
||||
<eLabel backgroundColor="black" font="Regular; 20" foregroundColor="#58ccff" position="318,480" size="52,25" text="2 >" transparent="1" />
|
||||
<eLabel backgroundColor="black" font="Regular; 20" foregroundColor="#58ccff" position="318,510" size="52,25" text="3 >" transparent="1" />
|
||||
<eLabel backgroundColor="black" font="Regular; 20" foregroundColor="#58ccff" position="317,540" size="53,25" text="4 >" transparent="1" />
|
||||
<widget name="key_1" position="375,450" zPosition="1" size="349,25" font="Regular;18" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<widget name="key_2" position="374,480" zPosition="1" size="350,25" font="Regular;20" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<widget name="key_3" position="373,510" zPosition="1" size="350,25" font="Regular;20" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<widget name="label19" position="373,540" zPosition="1" size="438,25" font="Regular;20" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="white" />
|
||||
<ePixmap position="926,489" zPosition="1" size="228,130" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/1matrix.png" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/red25.png" position="-4,650" size="209,40" alphatest="blend" />
|
||||
<widget name="key_red" position="0,670" zPosition="2" size="250,45" font="Regular; 15" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/green25.png" position="213,650" size="204,40" alphatest="blend" />
|
||||
<widget name="key_green" position="259,671" size="155,45" zPosition="1" font="Regular; 15" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellow25.png" position="431,650" size="247,40" alphatest="blend" />
|
||||
<widget name="key_yellow" position="421,670" size="270,46" zPosition="1" font="Regular; 15" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/blue25.png" position="690,650" size="197,40" alphatest="blend" />
|
||||
<widget name="key_blue" position="712,670" size="209,46" zPosition="1" font="Regular; 15" halign="center" backgroundColor="transpBlack" transparent="1" foregroundColor="white" />
|
||||
<widget name="key_menu" position="1065,648" zPosition="1" size="181,45" font="Regular;22" halign="left" valign="center" backgroundColor="black" transparent="1" foregroundColor="#58bcff" />
|
||||
<eLabel backgroundColor="black" font="Regular; 24" foregroundColor="white" position="950,651" size="102,45" halign="left" valign="center" text="MENU >" transparent="1" />
|
||||
<widget source="global.CurrentTime" render="Label" position="1052,39" size="152,41" backgroundColor="black" transparent="1" zPosition="1" font="Regular;25" valign="center" halign="right">
|
||||
<convert type="ClockToText">Format:%-H:%M</convert>
|
||||
</widget>
|
||||
</screen>
|
||||
"""
|
||||
|
||||
|
||||
###____ Skin FULLHD - MyUpgradeFULLHD ___mod. gutosie ___
|
||||
MyUpgradeFULLHD ="""
|
||||
<screen name="MyUpgradeFULLHD" position="center,center" size="1380,570" title="Tools Neoboot">
|
||||
<ePixmap position="594,255" zPosition="-2" size="623,313" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/matrix.png" />
|
||||
<widget source="list" render="Listbox" position="33,101" size="1328,124" scrollbarMode="showOnDemand">
|
||||
<convert type="TemplatedMultiContent">\
|
||||
{"template": [MultiContentEntryText(pos = (90, 1), size = (1250, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),
|
||||
MultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1),
|
||||
],
|
||||
"fonts": [gFont("dugme", 40)],
|
||||
"itemHeight": 66
|
||||
}
|
||||
</convert>
|
||||
</widget>
|
||||
<eLabel text="---NeoBoot upgrade new version--- " font="tasat; 40" position="188,21" size="1042,70" halign="center" foregroundColor="red" backgroundColor="black" transparent="1" />
|
||||
<eLabel text="Exit -Back" font="tasat; 40" position="27,441" size="389,80" halign="center" foregroundColor="yellow" backgroundColor="black" transparent="1" />
|
||||
</screen>"""
|
||||
|
||||
|
||||
###____ Skin UltraHD - MyUpgradeUltraHD ___mod. gutosie ___
|
||||
MyUpgradeUltraHD ="""
|
||||
<screen name="MyUpgradeUltraHD" position="center,center" size="2100,1020" flags="wfNoBorder" backgroundColor="#ff111111">
|
||||
<widget name="label1" position="180,210" size="1740,78" font="genel;60" halign="center" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" zPosition="1" transparent="1" />
|
||||
<widget source="list" render="Listbox" position="210,390" size="1680,252" itemHeight="132" font="genel;66" scrollbarMode="showOnDemand" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" foregroundColorSelected="#00FFFFF" backgroundColorSelected="#1A27408B" scrollbarSliderBorderWidth="1" scrollbarWidth="8" scrollbarSliderForegroundColor="#00FFFFFF" scrollbarSliderBorderColor="#0027408B" enableWrapAround="1" transparent="1">
|
||||
<convert type="TemplatedMultiContent">
|
||||
{"template": [MultiContentEntryText(pos=(0,0), size=(1680,132), flags=RT_HALIGN_CENTER|RT_VALIGN_CENTER, text=0)], "fonts": [gFont("Regular",66)], "itemHeight":132}\n </convert>
|
||||
</widget>
|
||||
<widget name="label2" position="180,600" size="1740,78" font="genel;60" halign="center" foregroundColor="#00DAA520" backgroundColor="#1A0F0F0F" zPosition="1" transparent="1" />
|
||||
<ePixmap position="774,840" size="243,120" zPosition="2" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/logo.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap position="1083,840" size="243,120" zPosition="2" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/bt_exit_UHD.png" transparent="1" alphatest="blend" />
|
||||
<eLabel position="120,0" zPosition="-2" size="1890,60" backgroundColor="#1A27408B" name="popupUst" />
|
||||
<eLabel position="0,60" zPosition="-2" size="2100,900" backgroundColor="#1A0F0F0F" name="popupOrt" />
|
||||
<eLabel position="90,900" zPosition="-1" size="1920,120" backgroundColor="#1A27408B" name="popupAlt" />
|
||||
</screen>"""
|
||||
|
||||
|
||||
###____ Skin MyUpgradeHD - MyUpgradeHD ___mod. gutosie ___
|
||||
MyUpgradeHD ="""
|
||||
<screen name="MyUpgradeHD" position="center,center" size="1127,569" title="Tools NeoBoot">
|
||||
<ePixmap position="492,223" zPosition="-2" size="589,298" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/matrix.png" />
|
||||
<widget source="list" render="Listbox" position="18,122" size="1085,82" scrollbarMode="showOnDemand">
|
||||
<convert type="TemplatedMultiContent">
|
||||
{"template": [MultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),
|
||||
MultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1),
|
||||
],
|
||||
"fonts": [gFont("Regular", 40)],
|
||||
"itemHeight": 66
|
||||
}
|
||||
</convert>
|
||||
</widget>
|
||||
<eLabel text="NeoBoot wykry\xc5\x82 nowsz\xc4\x85 wersj\xc4\x99 wtyczki. " font="Regular; 40" position="27,40" size="1042,70" halign="center" foregroundColor="red" backgroundColor="black" transparent="1" />
|
||||
<eLabel text="EXIT - Zrezygnuj" font="Regular; 40" position="27,441" size="389,80" halign="center" foregroundColor="yellow" backgroundColor="black" transparent="1" />
|
||||
</screen>"""
|
||||
|
||||
|
||||
###____ Skin NeoBootInstallationFULLHD - NeoBootInstallationFULLHD ___mod. gutosie ___
|
||||
NeoBootInstallationFULLHD ="""
|
||||
<screen name="NeoBootInstallationFULLHD" position="410,138" size="1200,850" title="NeoBoot">
|
||||
<widget name="label3" position="10,632" size="1178,114" zPosition="1" halign="center" font="dugme;28" backgroundColor="black" transparent="1" foregroundColor="#ffffff" />
|
||||
<ePixmap position="643,282" zPosition="-2" size="531,331" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/matrix.png" />
|
||||
<eLabel position="15,76" size="1177,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel position="10,622" size="1168,3" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel position="14,752" size="1168,3" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<eLabel position="15,276" size="1183,2" backgroundColor="blue" foregroundColor="blue" name="linia" />
|
||||
<widget name="label1" position="14,4" size="1180,62" zPosition="1" halign="center" font="dugme;28" backgroundColor="black" transparent="1" foregroundColor="#ffffff" />
|
||||
<widget name="label2" position="15,82" size="1178,190" zPosition="1" halign="center" font="dugme;28" backgroundColor="black" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="config" position="15,285" size="641,329" font="dugme; 28" itemHeight="42" scrollbarMode="showOnDemand" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/redcor.png" position="48,812" size="140,28" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/greencor.png" position="311,816" size="185,28" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellowcor.png" position="614,815" size="150,28" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/bluecor.png" position="958,817" size="140,26" alphatest="on" />
|
||||
<widget name="key_red" position="19,760" zPosition="1" size="221,47" font="dugme; 28" halign="center" valign="center" backgroundColor="red" transparent="1" foregroundColor="red" />
|
||||
<widget name="key_green" position="289,761" zPosition="1" size="227,47" font="dugme; 28" halign="center" valign="center" backgroundColor="green" transparent="1" foregroundColor="green" />
|
||||
<widget name="key_yellow" position="583,760" zPosition="1" size="224,51" font="dugme; 28" halign="center" valign="center" backgroundColor="yellow" transparent="1" foregroundColor="yellow" />
|
||||
<widget name="key_blue" position="856,761" zPosition="1" size="326,52" font="dugme; 28" halign="center" valign="center" backgroundColor="blue" transparent="1" foregroundColor="blue" />
|
||||
</screen>"""
|
||||
|
||||
###____ Skin NeoBootInstallationUltraHD - NeoBootInstallationUltraHD ___mod. gutosie ___
|
||||
NeoBootInstallationUltraHD ="""
|
||||
<screen name="NeoBootInstallationUltraHD" position="0,0" size="3840,2160" flags="wfNoBorder" backgroundColor="#ff111111">
|
||||
<widget source="Title" render="Label" position="174,108" size="1575,150" font="baslk;102" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" noWrap="1" transparent="1" />
|
||||
<widget name="label1" position="210,360" size="2100,90" font="genel;72" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" zPosition="1" transparent="1" />
|
||||
<widget name="label2" position="210,480" size="2100,570" font="genel;60" foregroundColor="#00DAA520" backgroundColor="#1A0F0F0F" zPosition="1" transparent="1" />
|
||||
<widget name="config" position="210,690" size="2100,540" itemHeight="108" font="genel;60" zPosition="2" scrollbarMode="showOnDemand" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" foregroundColorSelected="#00FFFFF" backgroundColorSelected="#1A27408B" scrollbarSliderBorderWidth="1" scrollbarWidth="8" scrollbarSliderForegroundColor="#00FFFFFF" scrollbarSliderBorderColor="#0027408B" enableWrapAround="1" transparent="1" />
|
||||
<eLabel position="210,1470" size="2100,3" backgroundColor="#0027408B" />
|
||||
<widget name="label3" position="150,1500" size="2100,90" font="genel;60" halign="center" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" zPosition="1" transparent="1" />
|
||||
<eLabel position="210,1620" size="2100,3" backgroundColor="#0027408B" />
|
||||
<ePixmap position="3420,1800" size="243,120" zPosition="10" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/bt_exit_UHD.png" transparent="1" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_red_UHD.png" position="105,1905" size="90,120" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_green_UHD.png" position="654,1905" size="90,120" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_yellow_UHD.png" position="1203,1905" size="90,120" alphatest="blend" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/btc_blue_UHD.png" position="1752,1905" size="90,120" alphatest="blend" />
|
||||
<widget name="key_red" position="210,1914" size="510,90" noWrap="1" zPosition="1" valign="center" font="dugme;60" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_green" position="759,1914" size="510,90" noWrap="1" zPosition="1" valign="center" font="dugme;60" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_yellow" position="1308,1914" size="510,90" noWrap="1" zPosition="1" valign="center" font="dugme;60" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<widget name="key_blue" position="1857,1914" size="510,90" noWrap="1" zPosition="1" valign="center" font="dugme;60" halign="left" backgroundColor="#1A0F0F0F" foregroundColor="#00FFFFFF" transparent="1" />
|
||||
<eLabel position="120,75" zPosition="-10" size="2265,1950" backgroundColor="#1A0F0F0F" name="layer1" />
|
||||
<eLabel position="2385,180" zPosition="-10" size="1335,1740" backgroundColor="#1A27408B" name="layer2" />
|
||||
<ePixmap position="2700,600" size="768,258" zPosition="5" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neoskins/metrix/skin/logo.png" transparent="1" alphatest="blend" />
|
||||
<widget source="global.CurrentTime" render="Label" position="1956,90" size="420,180" font="tasat;150" noWrap="1" halign="center" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1"><convert type="ClockToText">Default</convert>
|
||||
</widget>
|
||||
<widget source="global.CurrentTime" render="Label" position="1536,90" size="420,81" font="tasat;48" noWrap="1" halign="right" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1">
|
||||
<convert type="ClockToText">Format:%A</convert>
|
||||
</widget>
|
||||
<widget source="global.CurrentTime" render="Label" position="1536,162" size="420,81" font="tasat;48" noWrap="1" halign="right" valign="bottom" foregroundColor="#00FFFFFF" backgroundColor="#1A0F0F0F" transparent="1"><convert type="ClockToText">Format:%e. %b.</convert>
|
||||
</widget>
|
||||
</screen>"""
|
||||
|
||||
|
||||
###____ Skin NeoBootInstallationHD - NeoBootInstallationHD ___mod. gutosie ___
|
||||
NeoBootInstallationHD ="""
|
||||
<screen position="center, center" size="835, 500" title="NeoBoot">
|
||||
<ePixmap position="0,0" zPosition="-1" size="835,500" pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/frame835x500.png" />
|
||||
<widget name="label1" position="10,15" size="840,30" zPosition="1" halign="center" font="Regular;25" foregroundColor="red" backgroundColor="black" transparent="1" />
|
||||
<widget name="label2" position="7,100" size="840,296" zPosition="1" halign="center" font="Regular;20" backgroundColor="black" foregroundColor="#58ccff" transparent="1"/>
|
||||
<widget name="config" position="220,200" size="440,207" backgroundColor="black" scrollbarMode="showOnDemand" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/redcor.png" position="48,406" size="140,40" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/greencor.png" position="246,406" size="140,40" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/yellowcor.png" position="474,406" size="150,40" alphatest="on" />
|
||||
<ePixmap pixmap="/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/images/bluecor.png" position="675,406" size="140,40" alphatest="on" />
|
||||
<widget name="key_red" position="48,406" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="red" transparent="1" />
|
||||
<widget name="key_green" position="248,406" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="green" transparent="1" />
|
||||
<widget name="key_yellow" position="474,406" zPosition="1" size="140,40" font="Regular;20" halign="center" valign="center" backgroundColor="yellow" transparent="1" />
|
||||
<widget name="key_blue" position="672,415" zPosition="1" size="145,45" font="Regular;20" halign="center" valign="center" backgroundColor="blue" transparent="1" />
|
||||
<widget name="label3" position="20,339" size="816,61" zPosition="1" halign="center" font="Regular;24" backgroundColor="black" transparent="1" foregroundColor="#58ccff" />
|
||||
</screen>"""
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user