LK="." [ -L boot/kernel-414 ] && LK="$(readlink boot/kernel-414)" if [ "$(dirname $LK)" != "." ]; then echo "This is an efi installation" ln -sf $LK boot/kernel-414 if [ -f boot/$LK ]; then mv boot/kernel-4.14.208-NuTyX-414 boot/$LK 2>/dev/null ln -sf $LK boot/kernel-4.14.208-NuTyX-414 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-414 ]; then mkinitramfs 4.14.208-NuTyX-414 ln -sf initrd-4.14.208-NuTyX-414 boot/initrd-414 fi ln -sf kernel-4.14.208-NuTyX-414 boot/kernel-414 fi