forked from pool/plymouth
This commit is contained in:
parent
a8dd40a2fe
commit
72dca5e6e6
@ -59,6 +59,7 @@ Provides: bootsplash = %{version}
|
|||||||
Obsoletes: bootsplash < %{version}
|
Obsoletes: bootsplash < %{version}
|
||||||
Requires: gnu-unifont-bitmap-fonts
|
Requires: gnu-unifont-bitmap-fonts
|
||||||
Requires(post): plymouth-scripts
|
Requires(post): plymouth-scripts
|
||||||
|
Requires(post): mkinitrd
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Plymouth provides an attractive graphical boot animation in
|
Plymouth provides an attractive graphical boot animation in
|
||||||
@ -139,8 +140,8 @@ Requires: coreutils
|
|||||||
Requires: cpio
|
Requires: cpio
|
||||||
Requires: findutils
|
Requires: findutils
|
||||||
Requires: gzip
|
Requires: gzip
|
||||||
Requires: mkinitrd
|
|
||||||
Requires: plymouth
|
Requires: plymouth
|
||||||
|
Requires(post): mkinitrd
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description scripts
|
%description scripts
|
||||||
@ -379,15 +380,17 @@ popd
|
|||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
[ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration
|
if [ ! -e /.buildenv ]; then
|
||||||
%{_libexecdir}/plymouth/plymouth-update-initrd
|
[ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration
|
||||||
if [ $1 -eq 1 ]; then
|
%{_libexecdir}/plymouth/plymouth-update-initrd
|
||||||
if [ -f %{_sysconfdir}/default/grub ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
sed -i 's|splash=silent|splash|g' %{_sysconfdir}/default/grub
|
if [ -f %{_sysconfdir}/default/grub ]; then
|
||||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
sed -i 's|splash=silent|splash|g' %{_sysconfdir}/default/grub
|
||||||
fi
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
if [ -f /boot/grub/menu.lst ]; then
|
fi
|
||||||
sed -i 's|splash=silent|splash|g' /boot/grub/menu.lst
|
if [ -f /boot/grub/menu.lst ]; then
|
||||||
|
sed -i 's|splash=silent|splash|g' /boot/grub/menu.lst
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -420,7 +423,7 @@ fi
|
|||||||
%postun -n libply2 -p /sbin/ldconfig
|
%postun -n libply2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%post theme-spinfinity
|
%post theme-spinfinity
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 -a ! -e /.buildenv ]; then
|
||||||
export LIB=%{_libdir}
|
export LIB=%{_libdir}
|
||||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" ]; then
|
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" ]; then
|
||||||
%{_sbindir}/plymouth-set-default-theme -R spinfinity
|
%{_sbindir}/plymouth-set-default-theme -R spinfinity
|
||||||
@ -436,7 +439,7 @@ if [ $1 -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post theme-fade-in
|
%post theme-fade-in
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 -a ! -e /.buildenv ]; then
|
||||||
export LIB=%{_libdir}
|
export LIB=%{_libdir}
|
||||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" ]; then
|
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" ]; then
|
||||||
%{_sbindir}/plymouth-set-default-theme -R fade-in
|
%{_sbindir}/plymouth-set-default-theme -R fade-in
|
||||||
@ -452,7 +455,7 @@ if [ $1 -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post theme-solar
|
%post theme-solar
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 -a ! -e /.buildenv ]; then
|
||||||
export LIB=%{_libdir}
|
export LIB=%{_libdir}
|
||||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" ]; then
|
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" ]; then
|
||||||
%{_sbindir}/plymouth-set-default-theme -R solar
|
%{_sbindir}/plymouth-set-default-theme -R solar
|
||||||
@ -468,7 +471,7 @@ if [ $1 -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post branding-openSUSE
|
%post branding-openSUSE
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 -a ! -e /.buildenv ]; then
|
||||||
export LIB=%{_libdir}
|
export LIB=%{_libdir}
|
||||||
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" ]; then
|
if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "text" ]; then
|
||||||
%{_sbindir}/plymouth-set-default-theme -R openSUSE
|
%{_sbindir}/plymouth-set-default-theme -R openSUSE
|
||||||
|
Loading…
Reference in New Issue
Block a user