mirror of
https://github.com/Snigdha-OS/snigdhaos-grub-theme.git
synced 2025-12-06 06:03:52 +01:00
53 lines
1.8 KiB
INI
53 lines
1.8 KiB
INI
for kk in /boot/vmlinu*-*64; do
|
|
if [ "$kk" != "/boot/vmlinu*-*64" ]; then
|
|
have64="true"
|
|
if cpuid -l; then
|
|
have_kernel="true"
|
|
else
|
|
have_kernel="false"
|
|
fi
|
|
fi
|
|
done
|
|
for kk in /boot/vmlinu*-*86; do
|
|
if [ "$kk" != "/boot/vmlinu*-*86" ]; then
|
|
have32="true"
|
|
have_kernel="true"
|
|
fi
|
|
done
|
|
if [ "${have_kernel}" != "true" ]; then
|
|
menuentry --class=find.none "NO SUITABLE KERNELS AVAILABLE" {echo $@ echo "There are no kernels suitable for this machine available."
|
|
echo ""
|
|
if ! cpuid -l; then
|
|
echo "This machine is NOT 64bit capable."
|
|
echo ""
|
|
fi
|
|
echo "There are no suitable kernels available"
|
|
if [ "${have64}" == "true" ]; then
|
|
echo ""
|
|
echo "It appears you are trying to boot a 64bit release on a 32bit machine"
|
|
echo "This cannot work!"
|
|
fi
|
|
echo ""
|
|
echo "Press Escape to return to the main menu"
|
|
sleep --interruptible 9999
|
|
menu_reload
|
|
}
|
|
else
|
|
title=""
|
|
for kopt in @ARCH@ $kopts @DEFAULT_ARGS@ @BOOT_ARGS@; do
|
|
if [ -n "$title" ] ; then
|
|
title="$title $kopt";
|
|
else
|
|
title="$kopt";
|
|
fi;
|
|
done
|
|
menuentry "Boot with open source drivers" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
|
|
linux /boot/vmlinuz-$2 driver=free nouveau.modeset=1 i915.modeset=1 radeon.modeset=1
|
|
initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
|
|
}
|
|
menuentry "Boot allowing proprietary drivers (NVIDIA)" --class=@DIST_NAME@.@ARCH@ "$title" {# set arguments above with the editor
|
|
linux /boot/vmlinuz-$2 driver=nonfree nouveau.modeset=0 i915.modeset=1 radeon.modeset=1
|
|
initrd /boot/amd_ucode.img /boot/intel_ucode.img /boot/initramfs-@ARCH@.img
|
|
}
|
|
fi
|