check for /var/run/console/console.lock (#162982)

This commit is contained in:
Martin Stransky 2005-07-20 13:47:19 +00:00
parent ac0e91ded6
commit 25447ef3f0

View File

@ -5,7 +5,7 @@
Summary: The Advanced Linux Sound Architecture (ALSA) library.
Name: alsa-lib
Version: %{version_main}%{?version_app}
Release: 2
Release: 3
License: LGPL
Group: System Environment/Libraries
Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version_main}%{?prever}.tar.bz2
@ -90,12 +90,16 @@ rm -rf %{buildroot}
%post
/sbin/ldconfig
/usr/bin/ainit `cat /var/run/console/console.lock` start
if [ -f /var/run/console/console.lock ]; then
/usr/bin/ainit `cat /var/run/console/console.lock` start
fi
%postun -p /sbin/ldconfig
%preun
/usr/bin/ainit `cat /var/run/console/console.lock` stop
if [ -f /var/run/console/console.lock ]; then
/usr/bin/ainit `cat /var/run/console/console.lock` stop
fi
%triggerpostun -- alsa-lib < 1.0.6-2
ln -snf ../../etc/alsa %{_datadir}/alsa
@ -129,6 +133,9 @@ ln -snf ../../etc/alsa %{_datadir}/alsa
%{_datadir}/aclocal/alsa.m4
%changelog
* Wed Jul 20 2005 Martin Stransky <stransky@redhat.com> 1.0.9rf-3
- check for /var/run/console/console.lock (#162982)
* Thu Jun 16 2005 Martin Stransky <stransky@redhat.com> 1.0.9rf-2
- fix for #159411