15 lines
340 B
Bash
Executable file
15 lines
340 B
Bash
Executable file
#!/bin/bash
|
|
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
|
|
|
# Elevate script
|
|
if [ ! "$UID" -eq 0 ]
|
|
then
|
|
sudo bash "$BASH_SOURCE" "$USER";
|
|
else
|
|
EFI_BOOT_DIR="${EFI_BOOT_DIR:-"/boot"}";
|
|
BOOTLOADER_ID=${BOOTLOADER_ID:-"Arch"};
|
|
pacman --noconfirm -Syu grub efibootmgr;
|
|
. ../../../Common/Config/GRUB/setup.sh;
|
|
fi;
|
|
|
|
popd > /dev/null;
|