[Buildroot] how to init environment for non-login shell ?

David Picard dplamp at gmx.com
Thu Jan 31 18:12:36 UTC 2019


Hello,

I have set BR2_INIT_BUSYBOX=y.

In login shells, no problem : /etc/profile and ~/.profile are sourced. 
But in non-login shells (xterm in Xorg + Fluxbox), they aren't. The 
$HOME variable isn't even set. How can I fix this ?

To check what shell I'm in :
$ echo $0
sh                    --> non-login shell
$ echo $0
-sh                    --> login shell

- David


More information about the buildroot mailing list