Bind keys on console without login
First I'd like to say sorry if my english is kind of confusing, because I am Brazilian, so this is not my 1st language...
I have a computer which I use only as a SMB file server, so it doesn't have a monitor, only a keyboard (otherwise it wouldn't boot up). It has text-mode ubuntu server installed.
The matter is.. I want to configure some keys of that keyboard (any keys, could be F1, F2, esc...) to do certain tasks (like starting or stopping some daemons, or even halt). But, since the console is never logged in, I can't use the inputrc, can I?
I mean, how do I bind keys even while the computer is on the "login: " prompt?