posttrans: set as default grub theme if nothing else is already set [release 5.25.2-2mamba;Mon Jul 04 2022]
This commit is contained in:
parent
93c9afc247
commit
16bbfe0b3b
@ -2,7 +2,7 @@
|
|||||||
%define plasmaver %(echo %{version} | cut -d. -f1-3)
|
%define plasmaver %(echo %{version} | cut -d. -f1-3)
|
||||||
Name: breeze-grub
|
Name: breeze-grub
|
||||||
Version: 5.25.2
|
Version: 5.25.2
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: KDE Plasma 5 Breeze theme for the Grub boot loader
|
Summary: KDE Plasma 5 Breeze theme for the Grub boot loader
|
||||||
Group: Graphical Desktop/Look 'n' feel
|
Group: Graphical Desktop/Look 'n' feel
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -42,6 +42,14 @@ cp -a breeze %{buildroot}%{_datadir}/grub/themes
|
|||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
|
if [ $1 -ge 1 -a -e /etc/default/grub ]; then
|
||||||
|
# set as grub theme if nothing else is already set
|
||||||
|
grep "^GRUB_THEME=" /etc/default/grub >/dev/null || {
|
||||||
|
cat >> /etc/default/grub << _EOF
|
||||||
|
GRUB_THEME="%{_datadir}/grub/themes/breeze/theme.txt"
|
||||||
|
_EOF
|
||||||
|
}
|
||||||
|
fi
|
||||||
[ -e %{_sbindir}/update-grub ] && update-grub &>/dev/null || true
|
[ -e %{_sbindir}/update-grub ] && update-grub &>/dev/null || true
|
||||||
:
|
:
|
||||||
|
|
||||||
@ -57,6 +65,9 @@ cp -a breeze %{buildroot}%{_datadir}/grub/themes
|
|||||||
%{_datadir}/grub/themes/breeze/theme.txt
|
%{_datadir}/grub/themes/breeze/theme.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 04 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.25.2-2mamba
|
||||||
|
- posttrans: set as default grub theme if nothing else is already set
|
||||||
|
|
||||||
* Wed Jun 29 2022 Automatic Build System <autodist@mambasoft.it> 5.25.2-1mamba
|
* Wed Jun 29 2022 Automatic Build System <autodist@mambasoft.it> 5.25.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user