[Buildroot] avoiding the need to enter password

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Aug 4 15:42:16 UTC 2012


Le Sat, 4 Aug 2012 16:55:08 +0300,
Kevin Wilson <wkevils at gmail.com> a écrit :

> I tried it replacing  /bin.sh instead of the
> /sbin/getty line in /etc/inittab and indeed it boots into prompt
> without need to enter password.
> Is there a way to enforce it running the /etc/profile in boot
> in such a case ?
> (It seems to me that /etc/profile is not executed)

Try:

ttyS0::respawn:-/bin/sh

(i.e add a '-' in front of the /bin/sh command. It will make your shell
a login shell, which I think should tell the shell to
read /etc/profile).

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list