[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] kernel development



Martin-Eric Racine wrote:

> Then, can we have the kernel write "setenv HOSTNAME name" to a file?
> sorry if i seem wicked, but i'm just trying to avoid duplicating
> variables in mint.cnf, profile and cshrc if possible.

Any way of hardcoding MiNT to set an environment variable would have
exactly the same result as putting the setenv in mint.cnf.

> I tried putting "export HOSTNAME=`hostname`" in /etc/rc but
> login did not find it.

I think init uses a subshell to execute all rc-files, which means
they're generally not a good place for environment variables (because
they die with the subshell). So either use mint.cnf or the
login-scripts.

Groetjes,

Maurits.