X-Git-Url: https://code.delx.au/refind/blobdiff_plain/e86087ab76430dd4acf8c992aa0d9bad1c1c494b..0386a1c85f867b60fc6e792655714e0835444366:/debian/postinst diff --git a/debian/postinst b/debian/postinst index e78bd9d..af73308 100755 --- a/debian/postinst +++ b/debian/postinst @@ -7,7 +7,7 @@ set -e # 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 @@ -37,10 +37,14 @@ declare OpenSSL=`which openssl 2> /dev/null` # 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