Update xtrend_dev_mtd1.sh

This commit is contained in:
gutosie
2021-12-29 18:24:30 +02:00
committed by GitHub
parent 6ff1adba67
commit 81ccc67fc0

View File

@@ -62,21 +62,17 @@ if [ $BOXHOSTNAME = "et5x00" ] ; then
dd if=$NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz of=/dev/mtdblock1 dd if=$NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz of=/dev/mtdblock1
else else
$NandWrite -p /dev/mtd1 $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz > /dev/null 2>&1 $NandWrite -p /dev/mtd1 $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz > /dev/null 2>&1
$NandWrite -p /dev/mtd1 $NEOBOOTMOUNT$UPLOAD/.kernel/$BOXHOSTNAME.vmlinux.gz > /dev/null 2>&1
fi fi
fi fi
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
echo "NEOBOOT is booting image " $TARGET
echo "...............Shutdown Now..............."
sleep 5
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
reboot -d -f
else
echo "...............Reboot image Flash..............."
sleep 5
reboot -d -f
fi fi
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
echo "NEOBOOT is booting image " $TARGET
echo "...............Shutdown Now..............."
sleep 5
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
reboot -d -f
else else
if [ -e /.multinfo ] ; then if [ -e /.multinfo ] ; then
INFOBOOT=$( cat /.multinfo ) INFOBOOT=$( cat /.multinfo )
@@ -111,11 +107,10 @@ if [ $BOXHOSTNAME = "et5x00" ] ; then
else else
$NandWrite -p /dev/mtd1 $NEOBOOTMOUNT$IMAGE/$TARGET/boot/$BOXHOSTNAME.vmlinux.gz > /dev/null 2>&1 $NandWrite -p /dev/mtd1 $NEOBOOTMOUNT$IMAGE/$TARGET/boot/$BOXHOSTNAME.vmlinux.gz > /dev/null 2>&1
fi fi
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
echo "NEOBOOT is booting image " $TARGET
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
fi fi
update-alternatives --remove vmlinux vmlinux-`uname -r` || true
echo "NEOBOOT is booting image " $TARGET
echo "Used Kernel: " $TARGET > $NEOBOOTMOUNT$UPLOAD/.kernel/used_flash_kernel
echo "...............Shutdown Now..............." echo "...............Shutdown Now..............."
sleep 5 sleep 5
reboot -d -f reboot -d -f