2009-02-18 20:58:53 How to export environment variables in blackfin uclinux /etc/rc
DAVID ZHOU (CHINA)
Message: 69589
Hi,
I want to export some environment variables after blackfin uclinux startup,so I add followed:
export MY_SET=/etc/myset
in file /etc/rc
but when uClinux startup,I use echo $MY_SET, nothing displayed.
How should I do ? Thanks!
QuoteReplyEditDelete
2009-02-18 21:04:07 Re: How to export environment variables in blackfin uclinux /etc/rc
Mike Frysinger (UNITED STATES)
Message: 69590
/etc/rc is an init script, not a shell rc file. please read the documentation:
docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:shell
QuoteReplyEditDelete
2009-02-18 23:13:14 Re: How to export environment variables in blackfin uclinux /etc/rc
DAVID ZHOU (CHINA)
Message: 69596
Thanks Mike!
Another one :
I just can use export in console command line. When I use shell script it could not work, command echo can work in shell.
Why ?
QuoteReplyEditDelete
2009-02-18 23:44:03 Re: How to export environment variables in blackfin uclinux /etc/rc
Mike Frysinger (UNITED STATES)
Message: 69598
i dont really know what you're talking about. show examples.