Sorgelig wrote:i will implement key injection
In the meantime I did some researches, probably it's all trivial stuff for you, but I'll share the same (worst case I lost some time).
I managed to run a script in a second agetty terminal temporarily stopping the main one with:
Code: Select all
kill -n 19 $(ps -A | grep "[a]getty --nohostname -L tty0 xterm$" | grep -oE "^[0-9]+") && /sbin/agetty --autologin root --login-program /media/fat/Scripts/ini_settings.sh --nohostname -L tty0 xterm && kill -n 18 $(ps -A | grep "[a]getty --nohostname -L tty0 xterm$" | grep -oE "^[0-9]+")
It seems to work quite well: when the script exits, the main agetty takes control again.
[EDIT]--skip-login instead of --autologin root works the same[/EDIT]
For input injecting you can grab some code here if you like it https://github.com/Locutus73/uinput-injector
It's pretty basic and simple...
What do you think about a scripts_gui_old=0 ini option for people needing to use a low res video analog output?
Thank you in advance.