Add files via upload

This commit is contained in:
gutosie
2021-02-16 23:10:09 +02:00
committed by GitHub
parent acd873c872
commit 0ae67cbe68
2 changed files with 428 additions and 297 deletions

View File

@@ -1,49 +1,32 @@
#!/bin/sh #!/bin/sh
#DESCRIPTION = This script mod. by gutosie #DESCRIPTION = This script mod. by gutosie
#NeoBoot INIT Version: 6.00 #NeoBoot INIT Version: 9.12 vip
#Scrypt Unix Shell - init for neoboot #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 NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot
MODPROBE=/sbin/modprobe MODPROBE=/sbin/modprobe
BOXNAME=`cat /etc/hostname` NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
FINDBOOT=/media/*/ImageBoot/.neonextboot IMAGEKATALOG=ImageBoot
HOSTNAME=`cat /etc/hostname`
echo "====================================================> "
echo " "
echo " -=*[ NEOBOOT - BOOT UP ]*=- "
echo " NEO BOOT INIT Version: gutosie "
echo " q(-_-)p "
echo " "
echo "====================================================> "
if [ -e /tmp/.init_reboot ]; then if [ -e /tmp/.init_reboot ]; then
rm /tmp/.init_reboot rm /tmp/.init_reboot > /dev/null 2>&1
break; break;
else
else if [ -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ] ; then
if [ -e $FINDBOOT ] ; then CELBOOT=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
CELBOOT=`cat $FINDBOOT` if [ $CELBOOT = "Flash" ]; then
if [ $CELBOOT = "Flash" ]; then exec /sbin/init.sysvinit $1
exec /sbin/init.sysvinit $* exit 0
exit 0 else
else
echo " "
break; break;
fi fi
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/sda b 8 0
mknod /dev/sda1 b 8 1 mknod /dev/sda1 b 8 1
mknod /dev/sda2 b 8 2 mknod /dev/sda2 b 8 2
@@ -56,57 +39,29 @@ else
mknod /dev/sdd b 8 48 mknod /dev/sdd b 8 48
mknod /dev/sdd1 b 8 49 mknod /dev/sdd1 b 8 49
mknod /dev/sdd2 b 8 50 mknod /dev/sdd2 b 8 50
mkdir /dev/input mkdir /dev/input
mknod /dev/input/event0 c 13 64 mknod /dev/input/event0 c 13 64
mknod /dev/fb0 c 29 0 mknod /dev/fb0 c 29 0
mkdir /dev/fb mkdir /dev/fb
ln -s ../fb0 /dev/fb/0 ln -s ../fb0 /dev/fb/0
sleep 1 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` LIBDIR=/lib/modules/`uname -r`
if [ ! -d $LIBDIR ]; then if [ ! -d $LIBDIR ]; then
LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1` LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1`
fi fi
if [ `mount | grep /proc | wc -l` -lt 1 ]; then if [ `mount | grep /proc | wc -l` -lt 1 ]; then
/bin/mount -a
/bin/mount -t proc proc /proc > /dev/null 2>&1 /bin/mount -t proc proc /proc > /dev/null 2>&1
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1 /bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
/sbin/depmod -Ae > /dev/null 2>&1 /sbin/depmod -Ae > /dev/null 2>&1
fi fi
echo "NeoBoot is starting mdev"
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
/etc/init.d/mdev > /dev/null 2>&1
echo "NEOBOOT is starting mdev"
echo " "
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
/etc/init.d/mdev > /dev/null 2>&1
sleep 1 sleep 1
echo " " echo " "
echo "Search NEOBOOT... " echo "Search NEOBOOT... "
@@ -120,203 +75,259 @@ else
if [ $selectmnt == $item ]; then if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt echo "selectmnt=" $selectmnt
mnttest="uuid" mnttest="uuid"
mount $selectmnt $NEO > /dev/null 2>&1 mount $selectmnt $NEODEVICE > /dev/null 2>&1
fi fi
if [ ! -e $IMAGE ]; then if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "NEOBOOT hasn't been installed on: " $selectmnt echo "NEOBOOT hasn't been installed on: " $selectmnt
umount $NEO > /dev/null 2>&1 umount $NEODEVICE > /dev/null 2>&1
else else
echo "NEOBOOT has been installed on: " $selectmnt echo "NEOBOOT has been installed on: " $selectmnt
break; break;
fi fi
done done
fi
if [ ! -e $NEO ]; then
mkdir $NEO > /dev/null 2>&1
fi fi
if [ ! -e $NEODEVICE ]; then
mkdir $NEODEVICE > /dev/null 2>&1
fi
if [ $mnttest == "nouuid" ]; then if [ $mnttest == "nouuid" ]; then
echo "NEOBOOT mount by Device" echo "NEOBOOT mount by Device"
DEVICES1=`find /dev/sd??` DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1; for DEVICE in $DEVICES1;
do do
if [ -e $NEO ]; then if [ -e $NEODEVICE ]; then
echo "NEOBOOT checking installation on: " $DEVICE echo "NEOBOOT checking installation on: " $DEVICE
mount $DEVICE $NEO > /dev/null 2>&1 mount $DEVICE $NEODEVICE > /dev/null 2>&1
fi fi
if [ ! -e $IMAGE ]; then if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "NEOBOOT hasn't been installed on:" $DEVICE echo "NEOBOOT hasn't been installed on:" $DEVICE
umount $NEO > /dev/null 2>&1 umount $NEODEVICE > /dev/null 2>&1
else else
echo "NEOBOOT has been installed on: " $DEVICE echo "NEOBOOT has been installed on: " $DEVICE
break; break;
fi fi
done done
elif [ $mnttest == "uuid" ]; then elif [ $mnttest == "uuid" ]; then
echo "NEOBOOT mount by UUID" echo "NEOBOOT mount by UUID"
fi fi
DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1;
do
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
mount $DEVICE $NEODEVICE$ > /dev/null 2>&1
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
umount $NEODEVICE > /dev/null 2>&1
fi
done
#dodatkowe szukanie neoboota #dodatkowe szukanie neoboota
#mount /dev/sdb1 $NEO > /dev/null 2>&1 # <<< tu mozesz zmienic sdb1 i wpisac Twoje montowanie dysku dla neoboot #mount /dev/sdb1 $NEODEVICE > /dev/null 2>&1 # <<< tu mozesz zmienic sdb1 i wpisac Twoje montowanie dysku dla neoboot
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh
echo "_______________________NeoBoot mount by MOUNTPOINT_______________________"
fi
fi
neoLOG=$NEODEVICE$IMAGEKATALOG/initneo.log
if [ -f $neoLOG ]; then
rm -f $neoLOG
touch $neoLOG
fi
echo " >>> START NEXT LOG... >>> " >> $neoLOG
echo "..............-=*[ NEOBOOT - BOOT UP ]*=-.............." >> $neoLOG
echo " ____q(-_-)p____START NEXT Image...____q(-_-)p____ " >> $neoLOG
echo "......................................................." >> $neoLOG
echo "Tuner name: " `cat /etc/hostname` >> $neoLOG
echo "Boot image: " `cat $NEODEVICE$IMAGEKATALOG/.neonextboot` >> $neoLOG
echo "Init image, base kernel: " `cat $NEODEVICE$IMAGEKATALOG/.neonextboot` >> $neoLOG
echo "NEOBOOT is loading modules." echo "NEOBOOT is loading modules."
for mod in dvb; do for mod in dvb; do
echo "=======================> NeoBoot is loading modules" echo "=======================> NeoBoot is loading modules"
$MODPROBE $mod $MODPROBE $mod
done done
/etc/init.d/sysfs.sh
/etc/init.d/modutils.sh
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;
) &
if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then if [ -f $LIBDIR/kernel/fs/autofs4/autofs4.ko ]; then
/sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1 /sbin/insmod $LIBDIR/kernel/fs/autofs4/autofs4.ko > /dev/null 2>&1
fi fi
sleep 1 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 if [ -e $NEOBOOT/bin/neobm ]; then
echo " Neo-Boot start boot manager " echo " Neo-Boot start boot manager "
echo " Waiting to change image - 20s " echo " Waiting to change image - 20s "
echo " " echo " "
chmod 0755 $NEOBOOT/bin/neobm chmod 0755 $NEOBOOT/bin/neobm
$NEOBOOT/neologo.mvi > /dev/null 2>&1 /usr/bin/showiframe $NEOBOOT/neologo.mvi > /dev/null 2>&1
sleep 1 sleep 1
$NEOBOOT/bin/neobm > /dev/null 2>&1 $NEOBOOT/bin/neobm > /dev/null 2>&1
fi fi
if [ -e $NEOBOOT/bin/fbclear ]; then
if [ ! -e $IMAGEBOOT ]; then $NEOBOOT/bin/fbclear; $NEOBOOT/bin/fbclear; $NEOBOOT/bin/fbclear; $NEOBOOT/bin/fbclear > /dev/null 2>&1
fi
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
ln -sfn /sbin/init.sysvinit /sbin/init ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $IMAGEBOOT /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Used Kernel: Reinstall kernel !" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel echo "Used Kernel: Reinstall kernel !" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
echo " Sending all processes the TERM- KILL signal..."
echo -n "<<<END INIT INFO Rebooting...>>>"
echo " Sending all processes the TERM- KILL signal..." >> $neoLOG
echo "Error mounting, Return to image Flash..."; echo "Error mounting, Return to image Flash..." >> $neoLOG
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
reboot -f reboot -f
fi fi
TARGETIMAGE=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
if [ $TARGETIMAGE = "BlackHoleVU" ] || [ $TARGETIMAGE = "BlackHoleVU+" ] ; then
TARGETIMAGE=`cat $IMAGEBOOT` if ! [ -e $NEODEVICE$IMAGEKATALOG/.kernel/used_bh_kernel ]; then
if [ $TARGETIMAGE = "BlackHoleVU" ] || [ $TARGETIMAGE = "BlackHoleVU+" ] ; then rm -f $NEODEVICE$IMAGEKATALOG/.neonextboot
if ! [ -e $NEO/ImagesUpload/.kernel/used_bh_kernel ]; then echo "Flash " >> $NEODEVICE$IMAGEKATALOG/.neonextboot
rm -f $IMAGEBOOT echo "Halt init image - " $TARGETIMAGE
echo "Flash " >> $IMAGEBOOT echo "Start image Flash... "
echo "Halt init image - " $TARGETIMAGE /usr/bin/showiframe $NEOBOOT/bh.mvi > /dev/null 2>&1
echo "Start image Flash... " sleep 1
$NEOBOOT/bh.mvi > /dev/null 2>&1 exec /sbin/init.sysvinit $*
sync; sleep 1
exec /sbin/init.sysvinit $*
exit 0 exit 0
else else
break; break;
fi fi
fi fi
sync
TARGET=Flash TARGET=Flash
if [ -f $IMAGEBOOT ]; then if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
TARGET=`cat $IMAGEBOOT` TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
fi fi
#TARGET=Flash
HARDWARETYPE=`uname -m`
if [ $TARGET = "Flash" ]; then if [ $TARGET = "Flash" ]; then
echo "____________________________________" echo "NEOBOOT is booting image from " $TARGET
echo "____________________________________" echo " BOOT UP IMAGE FROM FLASH " >> $neoLOG
echo " " /bin/umount /media/usb > /dev/null 2>&1
echo "NEOBOOT is booting image from " $TARGET /bin/umount /media/hdd > /dev/null 2>&1
echo "____________________________________" if [ $HARDWARETYPE != "armv7l" ]; then
echo "____________________________________" /usr/bin/showiframe /usr/share/bootlogo.mvi > /dev/null 2>&1
/bin/umount $NEO > /dev/null 2>&1 fi
/bin/umount /media/usb > /dev/null 2>&1 echo "----------------------------------"
/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 " BOOT UP IMAGE FROM FLASH "
echo "----------------------------------" echo "----------------------------------";
ln -sfn /sbin/init.sysvinit /sbin/init
else else
echo " " ######### test boot new imaga>>>>
echo "NEOBOOT is booting image" $TARGET " from " $DEVICE if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_ok ]; then
echo " " echo "No Error - Booting image normal..."
if [ -d $IMAGE/$TARGET ]; then echo "No Error - Booting image normal... " >> $neoLOG
if [ -f $IMAGE/$TARGET/etc/init.d/udev ]; then else
sed -ei s!"\$4"!"\$3"!g $IMAGE/$TARGET/etc/init.d/udev if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_boot_new_image ]; then
echo " First start image - The first attempt to launch a new image..." >> $neoLOG
echo "First start image - The first attempt to launch a new image... "
echo "====================================================> "
rm -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_boot_new_image > /dev/null 2>&1
else
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_ok ] ; then
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
echo " Wrong kernel. FATAL ERROR - Back to image Flash..." >> $neoLOG
echo "Wrong kernel. Press number 3" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
echo -n "<<<END INIT INFO Rebooting...>>>"
reboot -d -f
fi
fi
fi
echo "NeoBoot is booting" $TARGET " from " `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
if [ -d $NEODEVICE$IMAGEKATALOG/$TARGET ]; then
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev ]; then
sed -ie "s#\$4#\$3#g" $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev
fi
if [ $HARDWARETYPE != "armv7l" ]; then
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi ]; then
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
else
/usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
fi fi
fi
if [ -f $IMAGE/$TARGET/usr/share/bootlogo.mvi ]; then sleep 1
/usr/bin/showiframe $IMAGE/$TARGET/usr/share/bootlogo.mvi > /dev/null 2>&1 /bin/mount -o bind /dev $NEODEVICE$IMAGEKATALOG/$TARGET/dev
fi /bin/mount -o bind /proc $NEODEVICE$IMAGEKATALOG/$TARGET/proc
/bin/mount -o bind /sys $NEODEVICE$IMAGEKATALOG/$TARGET/sys
sleep 1 rm $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
mkdir $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
/bin/mount -o bind /dev $IMAGE/$TARGET/dev if [ $HOSTNAME = "vuultimo4k" ] || [ $HOSTNAME = "vusolo4k" ] || [ $HOSTNAME = "vuuno4kse" ] || [ $HOSTNAME = "vuuno4k" ]; then
/bin/mount -o bind /proc $IMAGE/$TARGET/proc break;
/bin/mount -o bind /sys $IMAGE/$TARGET/sys else
rm $IMAGE/$TARGET/media/neoboot > /dev/null 2>&1 orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
mkdir $IMAGE/$TARGET/media/neoboot > /dev/null 2>&1 rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1` for item in $orgimag; do
rm -f $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh ohdd=`echo $item | cut -d"/" -f3`
for item in $orgimag; do nhdd=`mount | sed "/\$ohdd/!d" | grep '' | cut -d' ' -f3`
ohdd=`echo $item | cut -d"/" -f3` echo "Copied mount to run image." $nhdd >> $neoLOG
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3` echo $nhdd
if [ $nhdd == '$NEO' ]; then echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo $nhdd echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh done
echo "mount "$item $nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh chmod 755 `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
else echo "NeoBOOT created the file enigma2_pre_start.sh "
echo "umount "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh if [ ! -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ]; then
echo "mkdir "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh #nie powinno sie zdarzyc
echo "mount "$item $nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh fi
fi fi
done echo " [NEOBOOT] Use chroot ... exec /usr/sbin/chroot..."
cp -f -r /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
if [ -f $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh ]; then #/bin/mount /dev/sda1 `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$TARGET/media/hdd
chmod 755 $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init ]; then
fi echo "----------------------------------------"
echo "----------------------------------------" echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- "
echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- " echo "----------------------------------------"
echo "----------------------------------------" echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- " >> $neoLOG
echo "Boot from " `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` >> $neoLOG
echo "start file - init >" $TARGET >> $neoLOG
if [ ! -f /media/neoboot/ImageBoot/$TARGET/media/neoboot/ImageBoot/.neonextboot ]; then echo "====================================================> "
/bin/mount -o bind /media/neoboot /media/neoboot/ImageBoot/$TARGET/media/neoboot exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init.sysvinit
fi elif [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init.sysvinit ]; then
echo " start file - init.sysvinit" >> $neoLOG
DEVICES1=`ls /media` exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init
for DEVICE in $DEVICES1; echo "====================================================> "
do else
if [ -f /media/$DEVICE/ImageBoot/.neonextboot ]; then echo " NEOBOOT - ERROR !!! "
/bin/mount -o bind /media/neoboot /media/neoboot/ImageBoot/$TARGET/media/$DEVICE echo "Not found correctly unpacked image "$TARGET" z partycji " $DEVICE
fi echo "Check the correctness of unpacked catalogs in the selected one image. "
done echo " Back to image Flash... "
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
cd /media/neoboot/ImageBoot/$TARGET; echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
echo "Used Kernel: Reinstall kernel !" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
if [ -f $IMAGE/$TARGET/sbin/init.sysvinit ]; then /bin/umount /media/usb > /dev/null 2>&1
exec /usr/sbin/chroot . /sbin/init.sysvinit $* /bin/umount /media/hdd > /dev/null 2>&1
elif [ -f $IMAGE/$TARGET/sbin/init ]; then echo -n " FATAL ERROR - Back to image Flash...\n<<<END INIT INFO Rebooting...>>>" >> $neoLOG
exec /usr/sbin/chroot . /sbin/init $* echo -n "<<<END INIT INFO Rebooting...>>>"
else ln -sfn /sbin/init.sysvinit /sbin/init
echo " " reboot -d -f
echo " NEOBOOT - ERROR !!! " fi
echo "Nie odnaleziono poprawnie rozpakowanego image "$TARGET" z partycji " $DEVICE exit 0
echo " Sprawdz poprawnosc rozpakowanych katalogow w wybranym image. " fi
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
fi fi
# boot Flash
if [ -f /sbin/init.sysvinit ]; then if [ -f /sbin/init.sysvinit ]; then
exec /sbin/init.sysvinit $* echo "Running /sbin/init.sysvinit - boot Flash"
exec /sbin/init.sysvinit $1
fi fi
exit 0 exit 0
;; ;;
esac esac
exit exit

View File

@@ -1,17 +1,50 @@
#!/bin/sh #!/bin/sh
#script mod by gutosie #DESCRIPTION = This script mod. by gutosie
IMAGE=/media/neoboot/ImageBoot #NeoBoot INIT Version: 9.12 vip
IMAGEBOOT=/media/neoboot/ImageBoot/.neonextboot #Scrypt Unix Shell - init for neoboot
NEO=/media/neoboot
NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot
MODPROBE=/sbin/modprobe MODPROBE=/sbin/modprobe
BOXNAME=`cat /etc/hostname` NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
FINDBOOT=/media/*/ImageBoot/.neonextboot IMAGEKATALOG=ImageBoot
CELBOOT=`cat $FINDBOOT` HOSTNAME=`cat /etc/hostname`
echo "====================================================> "
if [ $CELBOOT = "Flash" ] || [ -e /tmp/.init_reboot ] ; then echo " "
exec /sbin/init.sysvinit $1 echo " -=*[ NEOBOOT - BOOT UP ]*=- "
else echo " NEO BOOT INIT Version: gutosie "
echo " q(-_-)p "
echo " "
echo "====================================================> "
if [ -e /tmp/.init_reboot ]; then
rm /tmp/.init_reboot > /dev/null 2>&1
break;
else
if [ -e `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot ] ; then
CELBOOT=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
if [ $CELBOOT = "Flash" ]; then
exec /sbin/init.sysvinit $1
exit 0
else
break;
fi
fi
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
LIBDIR=/lib/modules/`uname -r` LIBDIR=/lib/modules/`uname -r`
if [ ! -d $LIBDIR ]; then if [ ! -d $LIBDIR ]; then
LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1` LIBDIR=/lib/modules/`ls /lib/modules | tail -n 1`
@@ -19,9 +52,10 @@ else
if [ `mount | grep /proc | wc -l` -lt 1 ]; then if [ `mount | grep /proc | wc -l` -lt 1 ]; then
/bin/mount -t proc proc /proc > /dev/null 2>&1 /bin/mount -t proc proc /proc > /dev/null 2>&1
/bin/mount -t sysfs sysfs /sys > /dev/null 2>&1 /bin/mount -t sysfs sysfs /sys > /dev/null 2>&1
/sbin/depmod -Ae > /dev/null 2>&1 /sbin/depmod -Ae > /dev/null 2>&1
fi fi
sleep 2 sleep 2
/usr/bin/showiframe $NEOBOOT/neologo.mvi > /dev/null 2>&1
mnttest="nouuid" mnttest="nouuid"
if [ -e $NEOBOOT/bin/install ]; then if [ -e $NEOBOOT/bin/install ]; then
orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1` orgimag1=`mount | sed '/sd/!d' | cut -d" " -f1`
@@ -31,106 +65,192 @@ else
if [ $selectmnt == $item ]; then if [ $selectmnt == $item ]; then
echo "selectmnt=" $selectmnt echo "selectmnt=" $selectmnt
mnttest="uuid" mnttest="uuid"
mount $selectmnt $NEO > /dev/null 2>&1 mount $selectmnt $NEODEVICE > /dev/null 2>&1
fi fi
if [ ! -e $NEO/ImageBoot ]; then if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
echo "NEOBOOT hasn't been installed on: " $selectmnt echo "NEOBOOT hasn't been installed on: " $selectmnt
umount $NEO > /dev/null 2>&1 umount $NEODEVICE > /dev/null 2>&1
else else
echo "NEOBOOT has been installed on: " $selectmnt echo "NEOBOOT has been installed on: " $selectmnt
break; break;
fi fi
done done
fi fi
if [ ! -e $NEO ]; then if [ ! -e $NEODEVICE ]; then
mkdir $NEO > /dev/null 2>&1 mkdir $NEODEVICE > /dev/null 2>&1
fi fi
if [ $mnttest == "nouuid" ] ; then if [ $mnttest == "nouuid" ] ; then
echo "NeoBoot mount by Device" echo "NeoBoot mount by Device"
DEVICES1=`find /dev/sd??` DEVICES1=`find /dev/sd??`
for DEVICE in $DEVICES1; for DEVICE in $DEVICES1;
do do
if [ -e $NEO ]; then if [ -e $NEODEVICE ]; then
echo "neoboot checking installation on: " $DEVICE echo "neoboot checking installation on: " $DEVICE
mount $DEVICE $NEO > /dev/null 2>&1 mount $DEVICE $NEODEVICE > /dev/null 2>&1
fi fi
if [ ! -e $NEODEVICE$IMAGEKATALOG ]; then
if [ ! -e $NEO/ImageBoot ]; then
echo "NeoBoot hasn't been installed on: " $DEVICE echo "NeoBoot hasn't been installed on: " $DEVICE
umount $NEO > /dev/null 2>&1 umount $NEODEVICE > /dev/null 2>&1
else else
echo "NEOBOOTt has been installed on: " $DEVICE echo "NEOBOOTt has been installed on: " $DEVICE
break; break;
fi fi
done done
elif [ $mnttest == "uuid" ]; then elif [ $mnttest == "uuid" ]; then
echo "NEOBOOT mount by UUID" echo "NEOBOOT mount by UUID"
fi fi
if [ ! -e $IMAGEBOOT ]; then if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
if [ -e /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh ]; then
/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/neo.sh > /dev/null 2>&1
echo "_______________________NeoBoot mount by MOUNTPOINT_______________________"
fi
fi
neoLOG=$NEODEVICE$IMAGEKATALOG/initneo.log
if [ -f $neoLOG ]; then
rm -f $neoLOG
touch $neoLOG
fi
echo " >>> START NEXT LOG... >>> " >> $neoLOG
echo "..............-=*[ NEOBOOT - BOOT UP ]*=-.............." >> $neoLOG
echo " ____q(-_-)p____START NEXT Image...____q(-_-)p____ " >> $neoLOG
echo "......................................................." >> $neoLOG
echo "Tuner name: " `cat /etc/hostname` >> $neoLOG
echo "Boot image: " `cat $NEODEVICE$IMAGEKATALOG/.neonextboot` >> $neoLOG
echo "Init image, base kernel: " `cat $NEODEVICE$IMAGEKATALOG/.neonextboot` >> $neoLOG
if [ ! -e $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
ln -sfn /sbin/init.sysvinit /sbin/init ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > $IMAGEBOOT /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot
echo "Used Kernel: Reinstall kernel !" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel echo "Used Kernel: Reinstall kernel !" > /media/neoboot/ImagesUpload/.kernel/used_flash_kernel
echo " Sending all processes the TERM- KILL signal..."
echo -n "<<<END INIT INFO Rebooting...>>>"
echo " Sending all processes the TERM- KILL signal..." >> $neoLOG
echo "Error mounting, Return to image Flash..."; echo "Error mounting, Return to image Flash..." >> $neoLOG
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
reboot -f reboot -f
fi fi
TARGET=Flash TARGET=Flash
if [ -f $IMAGEBOOT ]; then if [ -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then
TARGET=`cat $IMAGEBOOT` TARGET=`cat $NEODEVICE$IMAGEKATALOG/.neonextboot`
fi fi
#TARGET=Flash
HARDWARETYPE=`uname -m`
if [ $TARGET = "Flash" ]; then if [ $TARGET = "Flash" ]; then
echo "NEOBOOT is booting image from " $TARGET echo "NEOBOOT is booting image from " $TARGET
/bin/umount $NEO > /dev/null 2>&1 echo " BOOT UP IMAGE FROM FLASH " >> $neoLOG
/bin/umount /media/usb > /dev/null 2>&1 /bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1 /bin/umount /media/hdd > /dev/null 2>&1
if [ $HARDWARETYPE != "armv7l" ]; then
/usr/bin/showiframe /usr/share/bootlogo.mvi > /dev/null 2>&1
fi
echo "----------------------------------"
echo " BOOT UP IMAGE FROM FLASH "
echo "----------------------------------";
ln -sfn /sbin/init.sysvinit /sbin/init
else else
echo "NEOBOOT is booting" $TARGET " from " $DEVICE ######### test boot new imaga>>>>
echo 3 > /proc/sys/vm/drop_caches if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_ok ]; then
if [ -d $NEO/ImageBoot/$TARGET ]; then echo "No Error - Booting image normal..."
if [ -f $NEO/ImageBoot/$TARGET/etc/init.d/udev ]; then echo "No Error - Booting image normal... " >> $neoLOG
sed -ie s!"\$4"!"\$3"!g $NEO/ImageBoot/$TARGET/etc/init.d/udev else
if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_boot_new_image ]; then
echo " First start image - The first attempt to launch a new image..." >> $neoLOG
echo "First start image - The first attempt to launch a new image... "
echo "====================================================> "
rm -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_boot_new_image > /dev/null 2>&1
else
if [ ! -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/.control_ok ] ; then
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
echo " Wrong kernel. FATAL ERROR - Back to image Flash..." >> $neoLOG
echo "Wrong kernel. Press number 3" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
ln -sfn /sbin/init.sysvinit /sbin/init
echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
echo -n "<<<END INIT INFO Rebooting...>>>"
reboot -d -f
fi
fi
fi
echo "NeoBoot is booting" $TARGET " from " `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`
if [ -d $NEODEVICE$IMAGEKATALOG/$TARGET ]; then
if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev ]; then
sed -ie "s#\$4#\$3#g" $NEODEVICE$IMAGEKATALOG/$TARGET/etc/init.d/udev
fi fi
sleep 1 if [ $HARDWARETYPE != "armv7l" ]; then
/bin/mount -o bind /dev $NEO/ImageBoot/$TARGET/dev if [ -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi ]; then
/bin/mount -o bind /proc $NEO/ImageBoot/$TARGET/proc /usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
/bin/mount -o bind /sys $NEO/ImageBoot/$TARGET/sys else
rm $NEO/ImageBoot/$TARGET$NEO > /dev/null 2>&1 /usr/bin/showiframe $NEODEVICE$IMAGEKATALOG/$TARGET/usr/share/bootlogo.mvi
mkdir $NEO/ImageBoot/$TARGET$NEO > /dev/null 2>&1 fi
fi
sleep 1
/bin/mount -o bind /dev $NEODEVICE$IMAGEKATALOG/$TARGET/dev
/bin/mount -o bind /proc $NEODEVICE$IMAGEKATALOG/$TARGET/proc
/bin/mount -o bind /sys $NEODEVICE$IMAGEKATALOG/$TARGET/sys
rm $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
mkdir $NEODEVICE$IMAGEKATALOG/$TARGET$NEODEVICE > /dev/null 2>&1
if [ $HOSTNAME = "vuultimo4k" ] || [ $HOSTNAME = "vusolo4k" ] || [ $HOSTNAME = "vuuno4kse" ] || [ $HOSTNAME = "vuuno4k" ]; then
break;
else
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1` orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
rm -f $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
for item in $orgimag; do for item in $orgimag; do
ohdd=`echo $item | cut -d"/" -f3` ohdd=`echo $item | cut -d"/" -f3`
nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3` nhdd=`mount | sed "/\$ohdd/!d" | grep '' | cut -d' ' -f3`
if [ $nhdd == '$NEO' ]; then echo "Copied mount to run image." $nhdd >> $neoLOG
echo $nhdd echo $nhdd
echo "mkdir "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mount "$item $nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
else done
echo "umount "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh chmod 755 `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
echo "mkdir "$nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh echo "NeoBOOT created the file enigma2_pre_start.sh "
echo "mount "$item $nhdd >> $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh if [ ! -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ]; then
echo ok cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh #nie powinno sie zdarzyc
fi fi
done fi
chmod 755 $IMAGE/$TARGET/usr/bin/enigma2_pre_start.sh echo " [NEOBOOT] Use chroot ... exec /usr/sbin/chroot..."
cp -f -r /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh
if [ -f $IMAGE/$TARGET/sbin/init.sysvinit ]; then #/bin/mount /dev/sda1 `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$TARGET/media/hdd
exec /usr/sbin/chroot $IMAGE/$TARGET /sbin/init.sysvinit if [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init ]; then
elif [ -f $IMAGE/$TARGET/sbin/init ]; then echo "----------------------------------------"
exec /usr/sbin/chroot $IMAGE/$TARGET /sbin/init echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- "
echo "----------------------------------------"
echo " -=*[ BOOT UP IMAGE FROM DISK ]*=- " >> $neoLOG
echo "Boot from " `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` >> $neoLOG
echo "start file - init >" $TARGET >> $neoLOG
echo "====================================================> "
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init.sysvinit
elif [ -f `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET/sbin/init.sysvinit ]; then
echo " start file - init.sysvinit" >> $neoLOG
exec /usr/sbin/chroot `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/$TARGET /sbin/init
echo "====================================================> "
else else
echo " " echo " NEOBOOT - ERROR !!! "
echo " NEOBOOT - ERROR !!! " echo "Not found correctly unpacked image "$TARGET" z partycji " $DEVICE
echo "Nie odnaleziono poprawnie rozpakowanego image "$TARGET" z partycji " $DEVICE echo "Check the correctness of unpacked catalogs in the selected one image. "
echo " Sprawdz poprawnosc rozpakowanych katalogow w wybranym image. " echo " Back to image Flash... "
echo " Powrot do image Flash... " /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/error.mvi > /dev/null 2>&1
rm -f $IMAGEBOOT; touch $IMAGEBOOT; echo "Flash " >> $IMAGEBOOT echo "Flash " > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$IMAGEKATALOG/.neonextboot
sync; sleep 10; exec /sbin/init.sysvinit $1 echo "Used Kernel: Reinstall kernel !" > `cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location`$UPLOAD/.kernel/used_flash_kernel
/bin/umount /media/usb > /dev/null 2>&1
/bin/umount /media/hdd > /dev/null 2>&1
echo -n " FATAL ERROR - Back to image Flash...\n<<<END INIT INFO Rebooting...>>>" >> $neoLOG
echo -n "<<<END INIT INFO Rebooting...>>>"
ln -sfn /sbin/init.sysvinit /sbin/init
reboot -d -f
fi fi
exit 0 exit 0
fi fi
fi fi
fi fi
# boot Flash
if [ -f /sbin/init.sysvinit ]; then if [ -f /sbin/init.sysvinit ]; then
echo "Running /sbin/init.sysvinit - boot Flash"
exec /sbin/init.sysvinit $1 exec /sbin/init.sysvinit $1
fi fi
exit 0
exit 0 ;;
esac
exit