diff options
author | 2007-05-24 09:34:36 +0000 | |
---|---|---|
committer | 2007-05-24 09:34:36 +0000 | |
commit | 63fb878ef9f94f59dd69cd41f7ecedd48bedd262 (patch) | |
tree | 9dc6f96bbe76cbfe8532fb3d0c45419115403d31 /x11-apps/xinit/files | |
parent | We should not RDEPEND on sources nor DEPEND on runtime only stuff (diff) | |
download | gentoo-2-63fb878ef9f94f59dd69cd41f7ecedd48bedd262.tar.gz gentoo-2-63fb878ef9f94f59dd69cd41f7ecedd48bedd262.tar.bz2 gentoo-2-63fb878ef9f94f59dd69cd41f7ecedd48bedd262.zip |
Test the correct tty in inittab
(Portage version: 2.1.2.7)
Diffstat (limited to 'x11-apps/xinit/files')
-rwxr-xr-x | x11-apps/xinit/files/xdm.initd-1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x11-apps/xinit/files/xdm.initd-1 b/x11-apps/xinit/files/xdm.initd-1 index a6f5c3f0a3a7..47aac8b69902 100755 --- a/x11-apps/xinit/files/xdm.initd-1 +++ b/x11-apps/xinit/files/xdm.initd-1 @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 -# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/files/xdm.initd-1,v 1.1 2007/05/23 12:21:51 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-apps/xinit/files/xdm.initd-1,v 1.2 2007/05/24 09:34:36 uberlord Exp $ # This is here to serve as a note to myself, and future developers. # @@ -113,7 +113,7 @@ cmdline_opt() { # Check to see if something is defined on our VT vtstatic() { if [ -e /etc/inittab ] ; then - grep -Eq "^[^#]+.*\<tty7\>" /etc/inittab + grep -Eq "^[^#]+.*\<tty$1\>" /etc/inittab elif [ -e /etc/ttys ] ; then grep -q "^ttyv$(($1 - 1))" /etc/ttys else |