9
0
Fork 0
barebox/defaultenv/defaultenv-2-base/bin
Sascha Hauer 90e766a78f login: rework login mechanism
We used to have the login functionality in the /env/bin/init script.
This is hard to review and it's too easy to break the login functionality
with changes to this script. Move the places to ask for a password to
C code where we have only a few places where we have to ask for a password.
Mainly these are run_shell() and the menutree command.

This patch introduces a login() function which will only return if the correct
password has been entered. Following calls will return immediately without
asking for a password again.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2015-08-28 08:00:27 +02:00
..
bootargs-ip move defaultenv-2 to defaultenv/defaultenv-2-* 2014-02-21 17:06:50 +01:00
init login: rework login mechanism 2015-08-28 08:00:27 +02:00
mtdparts-add defaultenv-2: mtdparts-add: Use new partition parameter 2015-02-12 09:33:44 +01:00