livecd-bashrc: Avoid a startx race by restricting to tty1
authorW. Trevor King <wking@tremily.us>
Wed, 25 Sep 2013 22:26:06 +0000 (15:26 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 26 Oct 2013 17:23:23 +0000 (10:23 -0700)
Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=481236
Reviewed-by: Matt Turner <mattst88@gmail.com>
livecd/files/livecd-bashrc

index 983e657d132f0c9c9ec712f073464d93db4c72ed..18b8f1d88da11d47e0465bed5cfc48448c2e9aab 100644 (file)
@@ -4,7 +4,7 @@ if [ ! "$(grep nox /proc/cmdline)" ]
 then
        if [ -x /usr/bin/X ]
        then
-               if [ -e /etc/startx ]
+               if [ -e /etc/startx -a $(tty) = "/dev/tty1" ];
                then
                        rm -f /etc/startx
                        ##STARTX