2009-08-12 03:43:02     "export xyz" in rc

Document created by Aaronwu Employee on Aug 16, 2013
Version 1Show Document
  • View in full screen mode

2009-08-12 03:43:02     "export xyz" in rc

Patrick Hotz (GERMANY)

Message: 78720   

 

Hi,

 

only a short question.

How can i set some environmental variables on bootup?

If i write "export TSLIB_FBDEVICE=/dev/fb0" at the end of rc there is no result....

 

Thanks,

 

Patrick

TranslateQuoteReplyEditDelete

 

 

2009-08-12 04:04:05     Re: "export xyz" in rc

Mike Frysinger (UNITED STATES)

Message: 78722   

 

the /etc/rc is an init script and has no bearing whatsoever on the environment of other processes which are not its children

 

if you want to configure your shell environment, then please read the documentation:

  docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:shell

QuoteReplyEditDelete

 

 

2009-08-12 04:28:39     Re: "export xyz" in rc

Patrick Hotz (GERMANY)

Message: 78725   

 

Hi,

 

sorry but i dont understand the documentation....

 

This is my inittab:

# inittab for uClinux

# Format:

# ttyline:termcap-entry:getty-command

#inet:ttyS0:/bin/inetd

#httpd:unknown:/bin/httpd

#sh:unknown:/bin/sh

#ttyS0::respawn:-/bin/sh

#sh:console:respawn:/bin/sh

#console::askfirst:-/bin/sh

 

In config i have enabled "enable console shell"

 

If i write for example "TSLIB_FBDEVICE=/dev/fb0" in inittab there is no result....

 

Could you be so kind and give me an example?

 

 

 

Patrick

TranslateQuoteReplyEditDelete

 

 

2009-08-12 05:24:51     Re: "export xyz" in rc

Yi Li (CHINA)

Message: 78726   

 

I think Mike means:

 

set the environment in "/etc/profile" or "$HOME/.profile"

 

-Yi

QuoteReplyEditDelete

 

 

2009-08-12 07:41:18     Re: "export xyz" in rc

Patrick Hotz (GERMANY)

Message: 78729   

 

but there is no file named "profile" at /etc or $HOME......

 

is there no example i can "copy and paste" ???

TranslateQuoteReplyEditDelete

 

 

2009-08-12 12:19:12     Re: "export xyz" in rc

Mike Frysinger (UNITED STATES)

Message: 78768   

 

nowhere does the documentation tell you to try and put env settings into the inittab.  it does however tell you to use the proifle files.

QuoteReplyEditDelete

 

 

2009-08-12 12:19:29     Re: "export xyz" in rc

Mike Frysinger (UNITED STATES)

Message: 78769   

 

so create them

Attachments

    Outcomes