mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-12-06 08:03:53 +01:00
10 lines
301 B
Bash
Executable File
10 lines
301 B
Bash
Executable File
#!/bin/bash
|
|
|
|
boot=$(bootctl status | grep Product | awk '{printf($2)}')
|
|
echo "The system is using $boot to boot."
|
|
|
|
# shellcheck disable=SC2086
|
|
if [ $boot = "GRUB" ]; then
|
|
/usr/bin/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=snigdhaos --disable-shim-lock --removable
|
|
fi
|