Hi,

/etc/profile is read only during interactive login shell mode (hush's -l
flag).
I think that a tty must be attached to the shell for this to work, not sure
if that's the case with inittab.

Martin

On Wed, 26 Feb 2020 at 18:37, Carlos Eduardo de Paula <[email protected]>
wrote:

> I've been struggling to understand on how to make Hush shell read my
> /etc/profile.
>
> I've configured my inittab with:
>
> ::respawn:/bin/cttyhack /bin/login -f root
>
> And also tried with the leading dash:
>
> ttySIF0::respawn:-/bin/sh
>
> In both cases, the profile is not read.
>
> My code is in
> https://github.com/carlosedp/riscv64-nommu-buildroot/tree/k210/board/kendryte/k210
>
> What am I missing?
>
> Thanks for any help!
>
>
> --
> ________________________________________
> Carlos Eduardo de Paula
> [email protected]
> http://carlosedp.com
> http://twitter.com/carlosedp
> Linkedin
> ________________________________________
> _______________________________________________
> busybox mailing list
> [email protected]
> http://lists.busybox.net/mailman/listinfo/busybox
>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to