configure ash to execute /etc/profile by default

Rich Felker dalias at aerifal.cx
Tue Jan 25 23:30:05 UTC 2011


On Tue, Jan 25, 2011 at 04:45:32PM -0500, rouble wrote:
> Busybox gurus,
> 
> Is there anyway to get ash to execute /etc/profile by default without
> having to use the -l flag?
> 
> If there isn't a configurable way to do this, any ideas on the best
> way to change the code to do this are appreciated.

export ENV=/etc/profile

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

Rich


More information about the busybox mailing list