X-Git-Url: https://code.delx.au/refind/blobdiff_plain/32a568bce8db689a5428ebf2257bb04b9d66958e..9b877e67c541f1c08950930a0ad8e0c6ee2ea2e9:/refind.spec diff --git a/refind.spec b/refind.spec index 4938cfc..5df8cd0 100644 --- a/refind.spec +++ b/refind.spec @@ -58,22 +58,19 @@ rm -rf $RPM_BUILD_ROOT %doc /usr/share/doc/refind-%{version}/refind/* /usr/share/refind/install.sh /usr/sbin/mkrlconf.sh -/boot/efi/EFI/refind/refind.efi -/boot/efi/EFI/refind/drivers/* -/boot/efi/EFI/refind/icons/* -/boot/efi/EFI/refind/keys/* -/boot/efi/EFI/refind/keys -/boot/efi/EFI/refind/icons -/boot/efi/EFI/refind/drivers /boot/efi/EFI/refind %config /boot/efi/EFI/refind/refind.conf %post -InstallDisk=`grep /boot/efi /etc/mtab | cut -d " " -f 1 | cut -c 1-8` -PartNum=`grep /boot/efi /etc/mtab | cut -d " " -f 1 | cut -c 9-10` -efibootmgr -c -d $InstallDisk -p $PartNum -l \\EFI\\refind\\refind.efi -L "rEFInd Boot Manager" +ExistingEntry=`efibootmgr | grep "rEFInd Boot Manager" | cut -c 5-8` +if [[ ! -n $ExistingEntry ]] ; then + InstallDisk=`grep /boot/efi /etc/mtab | cut -d " " -f 1 | cut -c 1-8` + PartNum=`grep /boot/efi /etc/mtab | cut -d " " -f 1 | cut -c 9-10` + efibootmgr -c -d $InstallDisk -p $PartNum -l \\EFI\\refind\\refind.efi -L "rEFInd Boot Manager" +fi /usr/sbin/mkrlconf.sh + %changelog * Sun Dec 30 2012 R Smith - 0.6.2 - Created spec file for 0.6.2 release