1 |
On Sun, Mar 3, 2013 at 7:13 PM, W. Trevor King <wking@×××××××.us> wrote: |
2 |
> From: "W. Trevor King" <wking@×××××××.us> |
3 |
> |
4 |
> Otherwise several virtual consoles may notice the existence of |
5 |
> /etc/startx, and spawn simultaneous X servers. This way we only spawn |
6 |
> a single X server, regardless of timing. |
7 |
> |
8 |
> A better solution here is probably to add a "start" or "x-server" |
9 |
> service to /etc/init.d/, but that's more work than I'm up to at the |
10 |
> moment. |
11 |
> --- |
12 |
> livecd/files/livecd-bashrc | 2 +- |
13 |
> 1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
> |
15 |
> diff --git a/livecd/files/livecd-bashrc b/livecd/files/livecd-bashrc |
16 |
> index 983e657..7abfbd4 100644 |
17 |
> --- a/livecd/files/livecd-bashrc |
18 |
> +++ b/livecd/files/livecd-bashrc |
19 |
> @@ -4,7 +4,7 @@ if [ ! "$(grep nox /proc/cmdline)" ] |
20 |
> then |
21 |
> if [ -x /usr/bin/X ] |
22 |
> then |
23 |
> - if [ -e /etc/startx ] |
24 |
> + if [ -e /etc/startx ] && [ "$(tty)" == /dev/tty1 ] |
25 |
> then |
26 |
> rm -f /etc/startx |
27 |
> ##STARTX |
28 |
> -- |
29 |
> 1.8.2.rc0.16.g20a599e |
30 |
> |
31 |
> |
32 |
|
33 |
Seems reasonable, but I don't really know how any of this works. Have |
34 |
you experienced the problem you describe? I.e., multiple X servers |
35 |
starting. |