Possible Duplicate:
Upstart script: Detect shift key down at boot
I want to add a question during boot. The user is supposed to make keyboard inputs and depending on those inputs, there is an if inside the script.
"Do you want X or Y?"
"Or simply wait 10 seconds to default to X."
Its a bit tricky, but you can use plymouth to converse with the user while the system is coming up. This will only work if your job blocks the startup, because once runlevel 2 is reached and plymouth is terminated, you won't be able to interact anymore.
Basically you want to execute 'plymouth ask-question' or 'plymouth watch-keystroke' and the user will be prompted. So if you want to wait 10 seconds for the user, you'd have an upstart job like this (this is quite theoretical and untested!):