mirror of
https://github.com/gutosie/neoboot.git
synced 2025-11-02 12:25:46 +01:00
Add files via upload
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo -e "\n_________________________ Start inithelp __________________________"
|
|
||||||
|
echo "\n_________________________ Start inithelp __________________________"
|
||||||
if [ -f /proc/stb/info/vumodel ]; then
|
if [ -f /proc/stb/info/vumodel ]; then
|
||||||
VUMODEL=$( cat /proc/stb/info/vumodel )
|
VUMODEL=$( cat /proc/stb/info/vumodel )
|
||||||
fi
|
fi
|
||||||
NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/
|
NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/
|
||||||
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
|
||||||
IMAGEKATALOG=ImageBoot
|
IMAGEKATALOG=ImageBoot
|
||||||
BOXNAME=`cat /etc/hostname`
|
BOXHOSTNAME=`cat /etc/hostname`
|
||||||
TARGET=Flash
|
TARGET=Flash
|
||||||
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
||||||
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
|
TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
|
||||||
@@ -15,15 +16,13 @@ if [ $TARGET = "Flash" ]; then
|
|||||||
/bin/umount /media/usb > /dev/null 2>&1
|
/bin/umount /media/usb > /dev/null 2>&1
|
||||||
echo "BOOTNEO is booting image from " $TARGET
|
echo "BOOTNEO is booting image from " $TARGET
|
||||||
/bin/umount /media/hdd > /dev/null 2>&1
|
/bin/umount /media/hdd > /dev/null 2>&1
|
||||||
/usr/bin/showiframe $NEOBOOT/neowait.mvi > /dev/null 2>&1
|
|
||||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||||
echo -e "\n----------------------------------"
|
echo "\n----------------------------------"
|
||||||
echo -e " BOOT UP IMAGE FROM FLASH "
|
echo " BOOT UP IMAGE FROM FLASH "
|
||||||
echo -e "----------------------------------"
|
echo "----------------------------------"
|
||||||
sleep 5
|
sleep 1
|
||||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
break;
|
break;
|
||||||
|
|
||||||
else
|
else
|
||||||
if [ ! -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
if [ ! -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
||||||
mnttest="nolocation"
|
mnttest="nolocation"
|
||||||
@@ -33,16 +32,16 @@ else
|
|||||||
for item in $orgimag1; do
|
for item in $orgimag1; do
|
||||||
selectmnt=`blkid | find "$selectinstall" | cut -d" " -f1`
|
selectmnt=`blkid | find "$selectinstall" | cut -d" " -f1`
|
||||||
if [ $selectmnt = $selectinstall ]; then
|
if [ $selectmnt = $selectinstall ]; then
|
||||||
echo -e "selectmnt="$selectmnt
|
echo "selectmnt="$selectmnt
|
||||||
mnttest="location"
|
mnttest="location"
|
||||||
mount $selectmnt `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
|
mount $selectmnt `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
|
||||||
echo -e "Neoboot location detected. "
|
echo "Neoboot location detected. "
|
||||||
fi
|
fi
|
||||||
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot ]; then
|
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot ]; then
|
||||||
echo "NeoBoot hasn't been installed on: " $selectinstall
|
echo "NeoBoot hasn't been installed on: " $selectinstall
|
||||||
umount -l $NEODEVICE > /dev/null 2>&1
|
umount -l $NEODEVICE > /dev/null 2>&1
|
||||||
else
|
else
|
||||||
echo -e "NEOBOOT has been installed on: " $selectmnt
|
echo "NEOBOOT has been installed on: " $selectmnt
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -55,14 +54,14 @@ else
|
|||||||
for DEVICE in $DEVICES1;
|
for DEVICE in $DEVICES1;
|
||||||
do
|
do
|
||||||
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` ]; then
|
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` ]; then
|
||||||
echo -e "neoboot checking installation on: " $DEVICE
|
echo "neoboot checking installation on: " $DEVICE
|
||||||
mount $DEVICE `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
|
mount $DEVICE `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot ]; then
|
if [ ! -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`ImageBoot ]; then
|
||||||
echo -e "NeoBoot hasn't been installed on: " $DEVICE
|
echo "NeoBoot hasn't been installed on: " $DEVICE
|
||||||
umount `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
|
umount `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` > /dev/null 2>&1
|
||||||
else
|
else
|
||||||
echo -e "NeoBoot has been installed on: " $DEVICE
|
echo "NeoBoot has been installed on: " $DEVICE
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -70,50 +69,55 @@ else
|
|||||||
if [ ! -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
if [ ! -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
||||||
if [ -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
|
if [ -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
|
||||||
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
||||||
echo -e "\n_________________________ NeoBoot mount by MOUNTPOINT _________________________ "
|
echo "\n_________________________ NeoBoot mount by MOUNTPOINT _________________________ "
|
||||||
fi
|
fi
|
||||||
elif [ $mnttest == "label" ]; then
|
elif [ $mnttest == "label" ]; then
|
||||||
echo -e "\n_________________________ NeoBoot mount by DEVICE_________________________ "
|
echo "\n_________________________ NeoBoot mount by DEVICE_________________________ "
|
||||||
elif [ $mnttest == "location" ]; then
|
elif [ $mnttest == "location" ]; then
|
||||||
echo -e "\n_______________________ NeoBoot mount by LOCATION _______________________ "
|
echo "\n_______________________ NeoBoot mount by LOCATION _______________________ "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
if [ ! -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
||||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||||
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
|
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "\nNEOBOOT - does not detect the location file neonextboot. Back to Flash..."
|
echo "\nNEOBOOT - does not detect the location file neonextboot. Back to Flash..."
|
||||||
sleep 5
|
sleep 1
|
||||||
fi
|
fi
|
||||||
echo -e "\n ________ test boot new imaga ________ "
|
echo "\n ________ test boot new imaga ________ "
|
||||||
sleep 2
|
|
||||||
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/.control_ok ]; then
|
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/.control_ok ]; then
|
||||||
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
|
[ $PL ] && echo "Nie ma bledu, normalny start image..." || echo "No Error - Booting image normal..."
|
||||||
sleep 2
|
sleep 1
|
||||||
elif [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/.control_boot_new_image ];then
|
elif [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/.control_boot_new_image ];then
|
||||||
rm -r $NEODEVICE$IMAGEKATALOG/$TARGET/.control_boot_new_image
|
rm -r $NEODEVICE$IMAGEKATALOG/$TARGET/.control_boot_new_image
|
||||||
echo -e "\n____Remove file control_boot_new_image____\nFirst start image - The first attempt to launch a new image... "
|
echo "\n____Remove file control_boot_new_image____\nFirst start image - The first attempt to launch a new image... "
|
||||||
sleep 2
|
sleep 1
|
||||||
else
|
else
|
||||||
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
|
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
|
||||||
echo -e "\n\nerror\n\nERROR, Please reinstalling the kernel for flash image now... \n\nError - NeoBoot he can not run it image Restart STB - Back to Flash..."
|
echo "\n\nerror\n\nERROR, Please reinstalling the kernel for flash image now... \n\nError - NeoBoot he can not run it image Restart STB - Back to Flash..."
|
||||||
echo "\nWrong kernel" > $NEODEVICE$IMAGEKATALOG/.kernel/used_flash_kernel
|
echo "\nWrong kernel" > $NEODEVICE$IMAGEKATALOG/.kernel/used_flash_kernel
|
||||||
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
|
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
|
||||||
echo " Neo-Boot start boot manager. Waiting to change image - 20s "
|
|
||||||
chmod 0755 $NEOBOOT/bin/neobm
|
|
||||||
sleep 10
|
sleep 10
|
||||||
/usr/bin/showiframe $NEOBOOT/neologo.mvi > /dev/null 2>&1
|
|
||||||
$NEOBOOT/bin/neobm > /dev/null 2>&1
|
|
||||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
if [ $BOXHOSTNAME = "vuduo4k" ] || [ $BOXHOSTNAME = "vuduo4kse" ] || [ $BOXHOSTNAME = "vuzero4k" ] || [ $BOXHOSTNAME = "bm750" ] || [ $BOXHOSTNAME = "vuduo" ] || [ $BOXHOSTNAME = "vusolo" ] || [ $BOXHOSTNAME = "vuuno" ] || [ $BOXHOSTNAME = "vuultimo" ] || [ $BOXHOSTNAME = "vuultimo4k" ] || [ $BOXHOSTNAME = "vusolo4k" ] || [ $BOXHOSTNAME = "vuuno4kse" ] || [ $BOXHOSTNAME = "vuuno4k" ] || [ $BOXHOSTNAME = "vusolo2" ] || [ $BOXHOSTNAME = "vuduo2" ] || [ $BOXHOSTNAME = "vusolose" ] || [ $BOXHOSTNAME = "vuzero" ] ; then
|
||||||
|
break;
|
||||||
|
else
|
||||||
|
echo " Neo-Boot start boot manager. Waiting to change image - 20s "
|
||||||
|
/usr/bin/showiframe $NEOBOOT/neologo.mvi > /dev/null 2>&1
|
||||||
|
chmod 0755 $NEOBOOT/bin/neobm
|
||||||
|
$NEOBOOT/bin/neobm > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
|
||||||
if [ ! -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
|
if [ ! -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then
|
||||||
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
echo -e "\nDELETE enigma2_pre_start.sh"
|
echo "\nDELETE enigma2_pre_start.sh"
|
||||||
cp -af /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
cp -af /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
cp -af /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
cp -af /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
|
||||||
chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
echo -e "\nNeoBOOT created the file mount enigma2_pre_start.sh "
|
echo "\nNeoBOOT created the file mount enigma2_pre_start.sh "
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user