# Remove any existing NVRAM entry for rEFInd, to avoid creating a duplicate.
ExistingEntry=`efibootmgr | grep "rEFInd Boot Manager" | cut -c 5-8`
if [[ -n $ExistingEntry ]] ; then
- efibootmgr --bootnum $ExistingEntry --delete-bootnum
+ efibootmgr --bootnum $ExistingEntry --delete-bootnum &> /dev/null
fi
cd /usr/share/refind
# their own local keys.
if [[ $IsSecureBoot == "1" && -n $ShimFile ]] ; then
if [[ -n $SBSign && -n $OpenSSL ]] ; then
- ./install.sh --shim $ShimFile --localkeys --yes
+ ./refind-install --shim $ShimFile --localkeys --yes
else
- ./install.sh --shim $ShimFile --yes
+ ./refind-install --shim $ShimFile --yes
fi
else
- ./install.sh --yes
+ if [[ -n $SBSign && -n $OpenSSL ]] ; then
+ ./refind-install --localkeys --yes
+ else
+ ./refind-install --yes
+ fi
fi