diff options
author | Jan Engelhardt <jengelh@linux01.gwdg.de> | 2007-05-08 03:38:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:27 -0400 |
commit | 1c2bbe6a11ec7d1de114acfc8a6bf2821b0224a5 (patch) | |
tree | f2f82465e0cfb6373c3b661d8c862beb1400d2f9 /drivers/char/vt.c | |
parent | 2707cd016b12d5e64c4feefcb5740b65f0c46845 (diff) |
vt: allow for the palette to be exposed and changed via sysfs
Allow for the palette to be exposed and changed via sysfs. A call to
/usr/bin/reset will slurp the new definitions in for the current console.
Already posted at http://lkml.org/lkml/2006/1/15/149
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/vt.c')
-rw-r--r-- | drivers/char/vt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/vt.c b/drivers/char/vt.c index afd00464184e..4ef9a286a230 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c | |||
@@ -934,6 +934,10 @@ int default_grn[] = {0x00,0x00,0xaa,0x55,0x00,0x00,0xaa,0xaa, | |||
934 | int default_blu[] = {0x00,0x00,0x00,0x00,0xaa,0xaa,0xaa,0xaa, | 934 | int default_blu[] = {0x00,0x00,0x00,0x00,0xaa,0xaa,0xaa,0xaa, |
935 | 0x55,0x55,0x55,0x55,0xff,0xff,0xff,0xff}; | 935 | 0x55,0x55,0x55,0x55,0xff,0xff,0xff,0xff}; |
936 | 936 | ||
937 | module_param_array(default_red, int, NULL, S_IRUGO | S_IWUSR); | ||
938 | module_param_array(default_grn, int, NULL, S_IRUGO | S_IWUSR); | ||
939 | module_param_array(default_blu, int, NULL, S_IRUGO | S_IWUSR); | ||
940 | |||
937 | /* | 941 | /* |
938 | * gotoxy() must verify all boundaries, because the arguments | 942 | * gotoxy() must verify all boundaries, because the arguments |
939 | * might also be negative. If the given position is out of | 943 | * might also be negative. If the given position is out of |