- Use /lib/firmware instead of /etc/firmware
This commit is contained in:
parent
1b0a243bcb
commit
fd88e0dd3b
@ -16,7 +16,7 @@ DEVICE=/dev/cpu/microcode
|
|||||||
ARGUMENTS=-Qu
|
ARGUMENTS=-Qu
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
PROGRAM=/sbin/microcode_ctl
|
PROGRAM=/sbin/microcode_ctl
|
||||||
DATAFILE=/etc/firmware/microcode.dat
|
DATAFILE=/lib/firmware/microcode.dat
|
||||||
|
|
||||||
. /etc/init.d/functions
|
. /etc/init.d/functions
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ diff -Naurp microcode_ctl-1.17.orig/Makefile microcode_ctl-1.17/Makefile
|
|||||||
-MANDIR = $(PREFIX)/man/man8
|
-MANDIR = $(PREFIX)/man/man8
|
||||||
-MICDIR = /etc
|
-MICDIR = /etc
|
||||||
+MANDIR = $(PREFIX)/share/man/man8
|
+MANDIR = $(PREFIX)/share/man/man8
|
||||||
+MICDIR = /etc/firmware
|
+MICDIR = /lib/firmware
|
||||||
|
|
||||||
RCFILE = microcode_ctl.start
|
RCFILE = microcode_ctl.start
|
||||||
RCFILEFINAL = microcode_ctl
|
RCFILEFINAL = microcode_ctl
|
||||||
@ -29,7 +29,7 @@ diff -Naurp microcode_ctl-1.17.orig/microcode_ctl.c microcode_ctl-1.17/microcode
|
|||||||
|
|
||||||
#define MICROCODE_DEVICE_DEFAULT "/dev/cpu/microcode"
|
#define MICROCODE_DEVICE_DEFAULT "/dev/cpu/microcode"
|
||||||
-#define MICROCODE_FILE_DEFAULT "/etc/microcode.dat"
|
-#define MICROCODE_FILE_DEFAULT "/etc/microcode.dat"
|
||||||
+#define MICROCODE_FILE_DEFAULT "/etc/firmware/microcode.dat"
|
+#define MICROCODE_FILE_DEFAULT "/lib/firmware/microcode.dat"
|
||||||
|
|
||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
|
@ -36,10 +36,10 @@ mkdir -p %{buildroot}/usr/share/man/man{1,8}
|
|||||||
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
||||||
|
|
||||||
make DESTDIR=%{buildroot} PREFIX=%{_prefix} \
|
make DESTDIR=%{buildroot} PREFIX=%{_prefix} \
|
||||||
INSDIR=/sbin MANDIR=%{_mandir}/man8 RCDIR=%{_sysconfdir} MICDIR=%{_sysconfdir}/firmware install clean
|
INSDIR=/sbin MANDIR=%{_mandir}/man8 install clean
|
||||||
|
|
||||||
install %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/microcode_ctl
|
install %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/microcode_ctl
|
||||||
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/firmware/microcode.dat
|
install -m 644 %{SOURCE2} %{buildroot}/lib/firmware/microcode.dat
|
||||||
|
|
||||||
chmod -R a-s %{buildroot}
|
chmod -R a-s %{buildroot}
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ chmod -R a-s %{buildroot}
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sysconfdir}/init.d/microcode_ctl
|
%{_sysconfdir}/init.d/microcode_ctl
|
||||||
%{_sysconfdir}/firmware/*
|
/lib/firmware/*
|
||||||
/sbin/microcode_ctl
|
/sbin/microcode_ctl
|
||||||
%attr(0644,root,root) %{_mandir}/*/*
|
%attr(0644,root,root) %{_mandir}/*/*
|
||||||
|
|
||||||
@ -78,6 +78,9 @@ family=`cat /proc/cpuinfo | grep "^cpu family" | sort -u | awk -F ": " '{ print
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 22 2008 Jarod Wilson <jwilson@redhat.com>
|
||||||
|
- Use /lib/firmware instead of /etc/firmware
|
||||||
|
|
||||||
* Wed Feb 13 2008 Jarod Wilson <jwilson@redhat.com>
|
* Wed Feb 13 2008 Jarod Wilson <jwilson@redhat.com>
|
||||||
- Fix permissions on microcode.dat
|
- Fix permissions on microcode.dat
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user