2008-05-12 08:00:14 How to setup the environment of my shell in 08-R1.
Wei Jiang (CHINA)
Message: 55739
Dear all,
I want to set my PATH in the profile or other files. I just follow this doc:
http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:shell&s[]=etc&s[]=profile
But I got a wrong result.
If I add this line "console::askfirst:-/bin/sh" in my inittab, uClinux entered the shell twice and don't exec "profile".
Then how can I setup my environment? Please advice, thanks:)
Wei Jiang
QuoteReplyEditDelete
2008-05-12 08:51:52 Re: How to setup the environment of my shell in 08-R1.
Mike Frysinger (UNITED STATES)
Message: 55740
what do you mean "wrong result" and "entered the shell twice" ?
how do you know the /etc/profile isnt being sourced ?
QuoteReplyEditDelete
2008-05-12 21:32:39 Re: How to setup the environment of my shell in 08-R1.
Wei Jiang (CHINA)
Message: 55753
Dear Mike,
Thanks for your help!
After I add "console::askfirst:-/bin/sh" in the inittab, the information is like below:
BusyBox v1.4.1 (2008-05-13 08:56:33 CST) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/>
BusyBox v1.4.1 (2008-05-13 08:56:33 CST) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
The "BusyBox v1.4.1..." will show twice..
And I add this lines in my profile:
export PATH=$PATH:/tmp
echo '********************Blackfin******************'
After booted, echo $PATH:
/bin:/usr/bin:/etc:/sbin:/usr/sbin
and cna't see "************Blackfin*******".
Thanks again, waiting for your help .
Wei Jiang
QuoteReplyEditDelete
2008-05-12 23:41:48 Re: How to setup the environment of my shell in 08-R1.
Mike Frysinger (UNITED STATES)
Message: 55756
you probably already enabled CONFIG_USER_INIT_CONSOLE_SH ... you cant do both at the same time or you will launch two shells
QuoteReplyEditDelete
2008-05-13 03:08:22 Re: How to setup the environment of my shell in 08-R1.
Wei Jiang (CHINA)
Message: 55757
Dear Mike,
Ok, it's fine now. Thank you very much!
Wei Jiang