23 lines
642 B
Diff
23 lines
642 B
Diff
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);
|
|
}
|