From 52feb6f51c48c7ed878eff5db8fd7d73d2c69c16 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Tue, 26 Aug 2008 19:10:09 -0300 Subject: [PATCH] Invoke xinit directly instead of startx Signed-off-by: Claudio Matsuoka --- Makefile | 2 +- finit-alt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fb0e0a25..f6f1fe22 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ BINS = finit-mod finit-alt finit-mdv #finit-exb CFLAGS += -march=pentium-m # Omit the first /sbin/hwclock if CONFIG_RTC_HCTOSYS is enabled in the kernel -#CFLAGS += -DNO_HCTOSYS +CFLAGS += -DNO_HCTOSYS # Append -directisa to /sbin/hwclock lines if the user has disabled # CONFIG_GENRTC and enabled CONFIG_RTC but not enabled CONFIG_HPET_TIMER diff --git a/finit-alt.c b/finit-alt.c index 57afad9f..af8a3430 100644 --- a/finit-alt.c +++ b/finit-alt.c @@ -578,12 +578,12 @@ int main() #endif if (debug) { snprintf(line, LINE_SIZE, - "su -c startx -l %s\n", username); + "su -c xinit -l %s\n", username); system(line); system("/bin/sh"); } else { snprintf(line, LINE_SIZE, - "su -c startx -l %s\n &> /dev/null", + "su -c xinit -l %s\n &> /dev/null", username); system(line); }