View Single Post
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#22
The busybox shell uses the .profile if one exists, but it doesn't come with one. So to answer Derek, there's no original .profile we could post for you..

However, it's mostly used to add to the PATH. You have your scripts in $HOME/MyDocs/Scripts/, don't you? So you would maybe want something like

PATH=$PATH:/home/user/Mydocs/Scripts

For myself, I have manually installed some non-busybox versions of some commands in /usr/local/bin which I want to override the busybox ones (those in /usr/bin), so I put /usr/local/bin first in the path:
PATH=/usr/local/bin:$PATH

And I also like to see all directories and files, even those starting with a dot, when I use the 'ls' command. So I have:

alias ls='ls -AC'

(Note that in general environment variables must be 'exported', e.g.
VARIABLE="value"
export VARIABLE
but PATH is already exported so it's not needed.)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post: