mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-12-21 10:59:40 +01:00
UPDATE
This commit is contained in:
@@ -47,7 +47,6 @@ fi
|
|||||||
|
|
||||||
if [ $TARGET = "Flash" ]; then
|
if [ $TARGET = "Flash" ]; then
|
||||||
echo "BOOTNEO is booting image from " $TARGET
|
echo "BOOTNEO is booting image from " $TARGET
|
||||||
/bin/umount -l
|
|
||||||
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi > /dev/null 2>&1
|
/usr/bin/showiframe /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/neowait.mvi > /dev/null 2>&1
|
||||||
sleep 3
|
sleep 3
|
||||||
ln -sfn /sbin/init.sysvinit /sbin/init
|
ln -sfn /sbin/init.sysvinit /sbin/init
|
||||||
@@ -101,12 +100,20 @@ else
|
|||||||
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
rm -f $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
fi
|
fi
|
||||||
cp -f /usr/lib/enigma2/python/Plugins/Extensions/NeoBoot/files/mountpoint.sh $NEODEVICE$IMAGEKATALOG/$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
|
||||||
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`
|
orgimag=`mount | sed '/sd/!d' | cut -d" " -f1`
|
||||||
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" | 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 $nhdd
|
||||||
echo "mkdir "$nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
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 "mount "$item $nhdd >> $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
@@ -119,6 +126,8 @@ else
|
|||||||
echo ok
|
echo ok
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
chmod 0755 $NEODEVICE$IMAGEKATALOG/$TARGET/usr/bin/enigma2_pre_start.sh
|
||||||
#chattr -i $LOCATION$IMAGEBOOT/$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 "
|
echo "NeoBOOT created the file mount enigma2_pre_start.sh "
|
||||||
|
|||||||
Reference in New Issue
Block a user