mirror of
https://github.com/troglobit/finit.git
synced 2026-11-28 20:58:24 +00:00
Invoke xinit directly instead of startx
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
c7c388e567
commit
52feb6f51c
2 files changed
+3
-3
No files matched your search
@@ -20,7 +20,7 @@ BINS = finit-mod finit-alt finit-mdv #finit-exb
|
|||||||
CFLAGS += -march=pentium-m
|
CFLAGS += -march=pentium-m
|
||||||
|
|
||||||
# Omit the first /sbin/hwclock if CONFIG_RTC_HCTOSYS is enabled in the kernel
|
# 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
|
# Append -directisa to /sbin/hwclock lines if the user has disabled
|
||||||
# CONFIG_GENRTC and enabled CONFIG_RTC but not enabled CONFIG_HPET_TIMER
|
# CONFIG_GENRTC and enabled CONFIG_RTC but not enabled CONFIG_HPET_TIMER
|
||||||
|
|||||||
+2
-2
@@ -578,12 +578,12 @@ int main()
|
|||||||
#endif
|
#endif
|
||||||
if (debug) {
|
if (debug) {
|
||||||
snprintf(line, LINE_SIZE,
|
snprintf(line, LINE_SIZE,
|
||||||
"su -c startx -l %s\n", username);
|
"su -c xinit -l %s\n", username);
|
||||||
system(line);
|
system(line);
|
||||||
system("/bin/sh");
|
system("/bin/sh");
|
||||||
} else {
|
} else {
|
||||||
snprintf(line, LINE_SIZE,
|
snprintf(line, LINE_SIZE,
|
||||||
"su -c startx -l %s\n &> /dev/null",
|
"su -c xinit -l %s\n &> /dev/null",
|
||||||
username);
|
username);
|
||||||
system(line);
|
system(line);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user