27 Sep
2011
27 Sep
'11
2:48 a.m.
On 2011-09-20 16:01 UT, Džen <yvldwt@gmail.com> wrote: D> I have the following lines in my .profile, works perfectly: D> if [ "`tty`" = /dev/tty1 ] && [ -z "$DISPLAY" ]; then startx logout D> fi D> A bit better than running startx off the shell IMO :) You could add a check for the current runlevel to this, eg [ "$(runlevel | cut -d' ' -f2)" = 5 ] just a thought… -- Philipp Haselwarter