LK="." [ -L boot/kernel-510 ] && LK="$(readlink boot/kernel-510)" if [ "$(dirname $LK)" != "." ]; then echo "This is an efi installation" ln -sf $LK boot/kernel-510 if [ -f boot/$LK ]; then mv boot/kernel-5.10.0-rc2-NuTyX-510 boot/$LK 2>/dev/null ln -sf $LK boot/kernel-5.10.0-rc2-NuTyX-510 else echo "EFI Partition not found, mount EFI Partition and re-install the kernel" fi else echo "This is a bios installation" if [ -L boot/initrd-510 ]; then mkinitramfs 5.10.0-rc2-NuTyX-510 ln -sf initrd-5.10.0-rc2-NuTyX-510 boot/initrd-510 fi ln -sf kernel-5.10.0-rc2-NuTyX-510 boot/kernel-510 fi