configure ash to execute /etc/profile by default

Harald Becker ralda at gmx.de
Wed Jan 26 14:13:43 UTC 2011


> export ENV=/etc/profile
In addition (to give more background), see ash manual page (use google
if you do not have that on your machine), topic "Invocation". Please
don't change ash startup behavior, it could otherwise break many shell
scripts.

> Or (probably better) point ENV to another script that does what you
need, since /etc/profile is meant to be for login shells.

Using ENV with /etc/profile will probably let you fall in a deep trap,
when you don't think carefully of it. Always use a different script for
this. You have been warned!

--
Harald


More information about the busybox mailing list