forked from pool/initviocons
This commit is contained in:
parent
128c2d5279
commit
def32bd35e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 17 12:22:22 CEST 2007 - sassmann@suse.de
|
||||||
|
|
||||||
|
- added new /proc/device-tree/model matching for ps3 detection
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 24 20:48:49 CEST 2007 - olh@suse.de
|
Tue Apr 24 20:48:49 CEST 2007 - olh@suse.de
|
||||||
|
|
||||||
|
22
initviocons.ps3-matching.patch
Normal file
22
initviocons.ps3-matching.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Index: initviocons-0.4/main.c
|
||||||
|
===================================================================
|
||||||
|
--- initviocons-0.4.orig/main.c
|
||||||
|
+++ initviocons-0.4/main.c
|
||||||
|
@@ -159,6 +159,7 @@ int main(int argc, char *argv[])
|
||||||
|
char lines_s[4], cols_s[4];
|
||||||
|
char model[42];
|
||||||
|
|
||||||
|
+ /* initviocons breaks fb on ps3, so disable it */
|
||||||
|
fd = open("/proc/device-tree/model", O_RDONLY);
|
||||||
|
if (fd >=0) {
|
||||||
|
opt = read(fd, model, sizeof(model) - 1);
|
||||||
|
@@ -166,6 +167,9 @@ int main(int argc, char *argv[])
|
||||||
|
model[opt] = '\0';
|
||||||
|
if (strcmp("PLAYSTATION 3", model) == 0)
|
||||||
|
exit(0);
|
||||||
|
+ if (strcmp("SonyPS3", model) == 0) {
|
||||||
|
+ exit(0);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
close(fd);
|
||||||
|
}
|
@ -13,9 +13,9 @@
|
|||||||
Name: initviocons
|
Name: initviocons
|
||||||
URL: http://www.iseries.de/
|
URL: http://www.iseries.de/
|
||||||
Version: 0.4
|
Version: 0.4
|
||||||
Release: 347
|
Release: 364
|
||||||
Summary: Terminal Initialization for the iSeries Virtual Console
|
Summary: Terminal Initialization for the iSeries Virtual Console
|
||||||
License: GNU General Public License (GPL)
|
License: GPL v2 or later
|
||||||
Group: System/Console
|
Group: System/Console
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -23,6 +23,7 @@ Source: initviocons-%{version}.tar.bz2
|
|||||||
Patch: initviocons-%{version}.dif
|
Patch: initviocons-%{version}.dif
|
||||||
Patch1: initviocons.minimal-termsize.patch
|
Patch1: initviocons.minimal-termsize.patch
|
||||||
Patch3: initviocons.ps3-hack.patch
|
Patch3: initviocons.ps3-hack.patch
|
||||||
|
Patch4: initviocons.ps3-matching.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Initviocons can be used on the iSeries platform to recognize terminal
|
Initviocons can be used on the iSeries platform to recognize terminal
|
||||||
@ -45,6 +46,7 @@ Authors:
|
|||||||
%patch0
|
%patch0
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure --prefix=/ --mandir=%{_mandir}
|
./configure --prefix=/ --mandir=%{_mandir}
|
||||||
@ -63,6 +65,8 @@ cp -p termprobes $RPM_BUILD_ROOT/usr/bin/
|
|||||||
/usr/bin/*
|
/usr/bin/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 17 2007 - sassmann@suse.de
|
||||||
|
- added new /proc/device-tree/model matching for ps3 detection
|
||||||
* Tue Apr 24 2007 - olh@suse.de
|
* Tue Apr 24 2007 - olh@suse.de
|
||||||
- do not run initviocons on PS3, until the kernel fb is fixed
|
- do not run initviocons on PS3, until the kernel fb is fixed
|
||||||
* Wed Jan 25 2006 - mls@suse.de
|
* Wed Jan 25 2006 - mls@suse.de
|
||||||
|
Loading…
x
Reference in New Issue
Block a user