From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Sat, 4 Aug 2012 17:42:16 +0200 Subject: [Buildroot] avoiding the need to enter password In-Reply-To: References: <20120804130507.13db9c42@skate> Message-ID: <20120804174216.0e4d7349@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Le Sat, 4 Aug 2012 16:55:08 +0300, Kevin Wilson 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