15 |
%define git 9752 |
%define git 9752 |
16 |
Name: grub2 |
Name: grub2 |
17 |
Version: 2.02 |
Version: 2.02 |
18 |
Release: %mkrel -c git%{git} 17 |
Release: %mkrel -c git%{git} 18 |
19 |
Summary: Boot-loader with support for Linux, Multiboot and more |
Summary: Boot-loader with support for Linux, Multiboot and more |
20 |
Group: System/Boot and Init |
Group: System/Boot and Init |
21 |
License: GPLv3+ and GPLv2 |
License: GPLv3+ and GPLv2 |
259 |
if [ $1 -eq 2 ]; then |
if [ $1 -eq 2 ]; then |
260 |
if [ -f /boot/grub2/install.sh -a -x /usr/sbin/detectloader ]; then |
if [ -f /boot/grub2/install.sh -a -x /usr/sbin/detectloader ]; then |
261 |
LOADER=$(/usr/sbin/detectloader) |
LOADER=$(/usr/sbin/detectloader) |
262 |
[ "$LOADER" = "GRUB2" ] && /boot/grub2/install.sh |
[ "$LOADER" = "GRUB2" ] && /boot/grub2/install.sh ||: |
263 |
fi |
fi |
264 |
fi |
fi |
265 |
|
|
271 |
if [ $1 -eq 2 ]; then |
if [ $1 -eq 2 ]; then |
272 |
if [ -f /boot/grub2/install.sh -a -x /usr/sbin/detectloader ]; then |
if [ -f /boot/grub2/install.sh -a -x /usr/sbin/detectloader ]; then |
273 |
LOADER=$(/usr/sbin/detectloader) |
LOADER=$(/usr/sbin/detectloader) |
274 |
[ "$LOADER" = "GRUB2" ] && /boot/grub2/install.sh |
[ "$LOADER" = "GRUB2" ] && /boot/grub2/install.sh ||: |
275 |
fi |
fi |
276 |
fi |
fi |
277 |
|
|