OBS User unknown 2007-04-24 21:30:51 +00:00 committed by Git OBS Bridge
parent f72eb0b385
commit 128c2d5279
3 changed files with 51 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 24 20:48:49 CEST 2007 - olh@suse.de
- do not run initviocons on PS3, until the kernel fb is fixed
-------------------------------------------------------------------
Wed Jan 25 21:36:37 CET 2006 - mls@suse.de

View File

@ -0,0 +1,27 @@
---
main.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
Index: initviocons-0.4/main.c
===================================================================
--- initviocons-0.4.orig/main.c
+++ initviocons-0.4/main.c
@@ -157,6 +157,18 @@ int main(int argc, char *argv[])
int cols = DEFAULT_COLS;
int lines = DEFAULT_ROWS;
char lines_s[4], cols_s[4];
+ char model[42];
+
+ fd = open("/proc/device-tree/model", O_RDONLY);
+ if (fd >=0) {
+ opt = read(fd, model, sizeof(model) - 1);
+ if (opt > 0) {
+ model[opt] = '\0';
+ if (strcmp("PLAYSTATION 3", model) == 0)
+ exit(0);
+ }
+ close(fd);
+ }
Debug = 0;
Quiet = 0;

View File

@ -1,27 +1,28 @@
#
# spec file for package initviocons (Version 0.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: initviocons
URL: http://www.iseries.de/
Version: 0.4
Release: 305
Summary: Terminal initialization for the iSeries virtual console
License: GPL
Group: System/Console
Autoreqprov: on
Source: initviocons-%{version}.tar.bz2
Patch: initviocons-%{version}.dif
Patch1: initviocons.minimal-termsize.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Name: initviocons
URL: http://www.iseries.de/
Version: 0.4
Release: 347
Summary: Terminal Initialization for the iSeries Virtual Console
License: GNU General Public License (GPL)
Group: System/Console
Autoreqprov: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: initviocons-%{version}.tar.bz2
Patch: initviocons-%{version}.dif
Patch1: initviocons.minimal-termsize.patch
Patch3: initviocons.ps3-hack.patch
%description
Initviocons can be used on the iSeries platform to recognize terminal
@ -43,6 +44,7 @@ Authors:
%setup -n initviocons-%{version}
%patch0
%patch1 -p1
%patch3 -p1
%build
./configure --prefix=/ --mandir=%{_mandir}
@ -60,7 +62,9 @@ cp -p termprobes $RPM_BUILD_ROOT/usr/bin/
/bin/*
/usr/bin/*
%changelog -n initviocons
%changelog
* Tue Apr 24 2007 - olh@suse.de
- do not run initviocons on PS3, until the kernel fb is fixed
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 08 2006 - olh@suse.de