It IS true, but you are correct as well. What you're looking at is root's .bash_profile, which in runlevel 5 (the default) switches to user dsl. This in turn runs /home/dsl/.bash_profile, which starts the x session. Remove 'startx' from /home/dsl/.bash_profile and you will be left in textmode. init 2 begins a single-user session as root, which is fine for maintenance but you really should not depend on a root session for day-to-day use.
Honestly I wasn't aware that root had a .bash_profile, since there are no files in /root at startup.Ow i see than ill use your method
Thanks for you replysJust to push this topic back up....
edit .bash_profile in the root directory
change line 3:
if [ $RUNLEVEL -eq 5 ]; then
to:
if [ $RUNLEVEL -eq 5 -o 3 ]; then
save .bash_profile & add it to .filetool.lst
Now if you boot with 'dsl 3' you will get 4 consoles logged in as user dsl in text mode.
RobertS: could this be added to DSL - it is only 5 bytes more in the file!Okey dokey, will do. Sounds good to me. Thanks for sharing.
Quote
if [ $RUNLEVEL -eq 5 -o 3 ]; then
I think that would always evaluate as true... I think you meant something like
Code Sample
if [ $RUNLEVEL -eq 5 -o $RUNLEVEL -eq 3 ]; then
but maybe it's better to use a case statement instead.Next Page...
original here.