Quote (mikshaw @ Mar. 25 2006,10:11) |
That seems like it would be kinda messy. |
Code Sample |
dsl@box:~$ cat .bash_profile #!/bin/bash export IRCNICK=DSL #added for my own use export http_proxy=http://proxy1.XXXXXX.com:80 SSH=`env | grep SSH_CONNECTION` RUNLEVEL=`runlevel|cut -f2 -d' '` if [ -z "$SSH" ]; then if [ $RUNLEVEL -eq 5 ]; then (startx & 2>/dev/null ) fi fi |