2008-02-13 16:53:28 setting permanent environment variables in uClinux
Bill Fassler (UNITED STATES)
Message: 51006 I'm sorry, because I'm sure this question was asked before, but I can't seem to find it.
For such things as the HID environment variables such as those required by Konqueror or the touchscreen can always be set command line via the "export" command, but isn't there a place to put them where they are set during bootup? I searched the wiki and the forum and couldn't find anything, yet I swear I've seen this question before, just don't recall the solution.
On the desktop I can just modify the rc.local. Where is the uClinux equivalent?
Bill
QuoteReplyEditDelete
2008-02-13 17:08:39 Re: setting permanent environment variables in uClinux
Bill Fassler (UNITED STATES)
Message: 51008 Never mind, I see it now. The romfs /etc/rc file is populated via the vendor/... directory.
Bill
QuoteReplyEditDelete
2008-02-13 17:09:19 Re: setting permanent environment variables in uClinux
Graham Davies (UNITED STATES)
Message: 51009 The rc script is in uClinux-dist/vendor/<your-vendor-name>/<your-board-name>
I have recently discovered that you can do anything here you can do in a regular shell script. Oh, joy! I've solved a number of problems with this, such as only loading a driver if the hardware for it is attached, setting network parameters from a user configuration file stored in Flash, etc.
Graham.
QuoteReplyEditDelete
2008-02-13 17:21:49 Re: setting permanent environment variables in uClinux
Mike Frysinger (UNITED STATES)
Message: 51011 the /etc/rc file will not affect the environment of any shells you start
if you want that, use /etc/profile
review this document:
http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:shell