From 3a7f7cd61aeb759361286b3c95acff878468c2d3 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Tue, 14 Apr 2009 12:46:29 -0300 Subject: [PATCH] Create /dev/vcsX, /dev/vcsaX when building for Mandriva (caio) Signed-off-by: Claudio Matsuoka --- finit-alt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/finit-alt.c b/finit-alt.c index fb1a4a14..f06223e0 100644 --- a/finit-alt.c +++ b/finit-alt.c @@ -54,6 +54,7 @@ THE SOFTWARE. #define RUNPARTS "/usr/bin/run-parts" #define REMOUNT_ROOTFS_RW #define MAKE_DEVICES +#define MAKE_DEV_VCS #define PAM_CONSOLE #define LISTEN_INITCTL #define RUNLEVEL 5 @@ -310,6 +311,17 @@ int main() blkdev("/dev/sda4", 0660, 8, 4); blkdev("/dev/sda5", 0660, 8, 5); blkdev("/dev/sda6", 0660, 8, 6); +#ifdef MAKE_DEV_VCS + /* Caio reports that newer X.org needs these */ + blkdev("/dev/vcs1", 0660, 7, 1); + blkdev("/dev/vcs2", 0660, 7, 2); + blkdev("/dev/vcs3", 0660, 7, 3); + blkdev("/dev/vcs4", 0660, 7, 4); + blkdev("/dev/vcsa1", 0660, 7, 129); + blkdev("/dev/vcsa2", 0660, 7, 130); + blkdev("/dev/vcsa3", 0660, 7, 131); + blkdev("/dev/vcsa4", 0660, 7, 132); +#endif continue; } /* This works only if /dev is tmpfs! If not, create