mirror of
https://mojerepo.cf/NeoBoot/NeoBoot-9.git
synced 2025-10-29 19:36:05 +01:00
UPDATE
This commit is contained in:
@@ -47,7 +47,6 @@ fi
|
||||
|
||||
if [ $TARGET = "Flash" ]; then
|
||||
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
|
||||
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
|
||||
@@ -119,6 +126,8 @@ else
|
||||
echo ok
|
||||
fi
|
||||
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 "
|
||||
|
||||
Reference in New Issue
Block a user