View Single Post
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#33
Originally Posted by pali View Post
Instead key_pressed, you can use program evkey (it is in bootmenu package). But also can tell you what key was pressed

evkey is opensource (part of bootmenu project), source here:
https://garage.maemo.org/plugins/scm...nu&view=markup

command read in shell read input from /dev/tty but evkey read it directly without terminal from /dev/input/event*
Hmmm... I'm unsure if that's better or worse for my purposes. On the one hand, it means my implementation doesn't depend on busybox-power, on the other, I'm lazy, and if I were to package my version of console-at-boot, it'd be easier for me to put busybox-power as a dependency than to figure out how to make the autobuilder build all the sources right...

I'll look into it eventually.

Originally Posted by pali
In future I will push kbd (from ubuntu/debian) and this my recovery-boot to extras repository. So it will be possible to install it in HAM

If somebody confirm that my recovery-boot has no problems, I can push it...
Hmm... up to you if you want to package it. I'd be happy to though, if you don't feel like maintaining it. I know I promised myself the moment I started uploading stuff to the repository, that I would maintain what I upload as long as I think there's any users who can benefit from it. (Also, since the binaries are small I was going to suggest not optifying kbd; though I suppose power users who might need loadkeys/dumpkeys from the recovery consoles can figure out how to mount the /home and /opt partitions.)

As for your recovery-boot, since I don't use bootmenu, I can't tell you for sure if it works; BUT my experiences with my versions added as /bootmenu.sh and to /sbin/preinit worked fine and that was me going off your code, so I think it should be safe. One thing I request is that your package clearly indicates it's a bootmenu entry, as I will eventually package my /sbin/preinit added version too. Don't want users getting confused between the two. I'm guessing "recovery-boot" is what you'll use as the literal package name?
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post: