henk1955

Group: Members
Posts: 249
Joined: June 2004 |
 |
Posted: Jan. 18 2005,20:19 |
 |
this is the "mainloop" of dsl /.bash_profile
Code Sample | #!/bin/bash RUNLEVEL=`runlevel|cut -f2 -d' '` if [ $RUNLEVEL -eq 5 ] then export HOME=/home/dsl cd $HOME while [ 1 ]; do su - dsl done fi
|
this is /home/dsl/.bash_profile
Code Sample | #!/bin/bash export IRCNICK=DSL SSH=`env | grep SSH_CONNECTION` if [ -z "$SSH" ]; then startx; fi
|
i think if you change: su - dsl to: startx you run X as root user
-------------- You have a Q or just want to chat? Come to #damnsmalllinux on irc.freenode.net! Open 24/7
dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl) ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
|