mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2026-03-29 08:18:57 +02:00
10 lines
301 B
Bash
10 lines
301 B
Bash
#!/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
|