diff --git a/NeoBoot/bin/inithelp b/NeoBoot/bin/inithelp index 7f73761..0c97e7b 100644 --- a/NeoBoot/bin/inithelp +++ b/NeoBoot/bin/inithelp @@ -46,8 +46,7 @@ fi if [ $TARGET = "Flash" ]; then - echo "BOOTNEO is booting image from " $TARGET - /bin/umount -l + echo "BOOTNEO is booting image from " $TARGET /usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi > /dev/null 2>&1 sleep 3 ln -sfn /sbin/init.sysvinit /sbin/init @@ -101,12 +100,20 @@ else rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh fi cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh - if [ ! -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then + + #mount $NEODEVICE /media/neoboot + + if [ -e $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh ] ; then orgimag=`mount | sed '/sd/!d' | cut -d" " -f1` for item in $orgimag; do ohdd=`echo $item | cut -d"/" -f3` nhdd=`mount | sed "/\$ohdd/!d" | sed q | cut -d" " -f3` - if [ $nhdd ==$(cat /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/.location) ]; then + if [ $nhdd == '/media/usb' ] ; then + echo $nhdd + echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh + echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh + echo "[NeoBOOT] created in /usr/bin the file enigma2_pre_start.sh " + elif [ $nhdd == '/media/hdd' ] ; then echo $nhdd echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh echo "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh @@ -118,7 +125,9 @@ else echo "[NeoBOOT] enigma2_pre_start.sh " echo ok fi - done + done + fi + chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh #chattr -i $LOCATION$IMAGEBOOT/$TARGET/usr/bin/enigma2_pre_start.sh echo "NeoBOOT created the file mount enigma2_pre_start.sh "