On Sun, Mar 3, 2013 at 7:13 PM, W. Trevor King <[email protected]> wrote:
> From: "W. Trevor King" <[email protected]>
>
> Otherwise several virtual consoles may notice the existence of
> /etc/startx, and spawn simultaneous X servers.  This way we only spawn
> a single X server, regardless of timing.
>
> A better solution here is probably to add a "start" or "x-server"
> service to /etc/init.d/, but that's more work than I'm up to at the
> moment.
> ---
>  livecd/files/livecd-bashrc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/livecd/files/livecd-bashrc b/livecd/files/livecd-bashrc
> index 983e657..7abfbd4 100644
> --- a/livecd/files/livecd-bashrc
> +++ b/livecd/files/livecd-bashrc
> @@ -4,7 +4,7 @@ if [ ! "$(grep nox /proc/cmdline)" ]
>  then
>         if [ -x /usr/bin/X ]
>         then
> -               if [ -e /etc/startx ]
> +               if [ -e /etc/startx ] && [ "$(tty)" == /dev/tty1 ]
>                 then
>                         rm -f /etc/startx
>                         ##STARTX
> --
> 1.8.2.rc0.16.g20a599e
>
>

Seems reasonable, but I don't really know how any of this works. Have
you experienced the problem you describe? I.e., multiple X servers
starting.

Reply via email to