Friday 12 December 2014

Add a Master Password screen to E2B

On the E2B Forum, I was recently asked by a user how to display a wallpaper bitmap on first boot and then only proceed to the E2B Main menu if the user entered the correct password.
He did not want any prompt or indication to be visible - just the wallpaper.
A Master password can be set in the E2B  \_ISO\MyE2B.cfg user configuration file but the example code displays a user prompt. This user did not want any prompt or cursor to be visible.



The solution has now been added to the E2B website here.

The secret was to redirect the password prompt to nul using:

password fred > nul

This does not echo any text to the screen and returns a result of 'TRUE' only if 'fred' was entered by the user.

For more grub4dos tips see:
http://www.rmprepusb.com/tutorials/grub4dos
http://www.rmprepusb.com/tutorials/grub4dos/grub4dos-internal-variables-and-functions

P.S. Please tick one of the feedback boxes if you found this useful and subscribe to this blog.

No comments:

Post a Comment