From 4086bded3eaf6623716755ee6e1ce6aff1f2627f Mon Sep 17 00:00:00 2001 From: gutosie Date: Tue, 10 Jan 2023 13:30:33 +0200 Subject: [PATCH] Update inithelp --- NeoBoot/bin/inithelp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/NeoBoot/bin/inithelp b/NeoBoot/bin/inithelp index f2cc7b0..bc59b0c 100644 --- a/NeoBoot/bin/inithelp +++ b/NeoBoot/bin/inithelp @@ -7,6 +7,7 @@ if [ -f /proc/stb/info/vumodel ]; then fi NEOBOOT=/usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/ NEODEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location` +INSTALLDEVICE=`cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/bin/install` IMAGEKATALOG=ImageBoot BOXHOSTNAME=`cat /etc/hostname` TARGET=Flash @@ -79,6 +80,16 @@ else echo "_______________________ NeoBoot mount by LOCATION _______________________ " fi fi + if [ $NEODEVICE = "/media/hdd/" ] && [ $INSTALLDEVICE = "/dev/sda1" ] ; then + /bin/mount /dev/sda1 /media/hdd > /dev/null 2>&1 + elif [ $NEODEVICE = "/media/hdd/" ] && [ $INSTALLDEVICE = "/dev/sdb1" ] ; then + /bin/mount /dev/sdb1 /media/hdd > /dev/null 2>&1 + fi + if [ $NEODEVICE = "/media/usb/" ] && [ $INSTALLDEVICE = "/dev/sda1" ] ; then + /bin/mount /dev/sda1 /media/usb > /dev/null 2>&1 + elif [ $NEODEVICE = "/media/usb/" ] && [ $INSTALLDEVICE = "/dev/sdb1" ] ; then + /bin/mount /dev/sdb1 /media/usb > /dev/null 2>&1 + fi if [ ! -f $NEODEVICE$IMAGEKATALOG/.neonextboot ]; then ln -sfn /sbin/init.sysvinit /sbin/init echo "Flash " > $NEODEVICE$IMAGEKATALOG/.neonextboot