Busybox hush shell does not read /etc/profile

Martin Lewis martin.lewis.x84 at gmail.com
Wed Jun 3 06:10:16 UTC 2020


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 <me at carlosedp.com>
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
> me at carlosedp.com
> http://carlosedp.com
> http://twitter.com/carlosedp
> Linkedin
> ________________________________________
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20200603/460277ff/attachment.html>


More information about the busybox mailing list