I need to write a script which prompts information to the user in case of an error. Is this possible using /etc/init.d
scripts + update-rc.d
? Is there any other way?
Asked
Active
Viewed 182 times
0

Desperatuss0ccus
- 252
- 1
- 4
- 9

Josep Rodríguez López
- 109
- 1
1 Answers
1
Sure, it's just a standard init script that reads input. Plenty of scripts do it in special circumstances. Be really careful, though; unless the problem you're prompting about would result in the system being completely unusable and unable to get to even the most minimal of recovery environments up and running, all your init script will do is cause the system to fail to boot, making recovery much harder.

womble
- 96,255
- 29
- 175
- 230
-
I have already implemented the script, the issue here is that on startup, I'm not able to give any input, because it starts the graphical system (X11). – Josep Rodríguez López Jul 09 '12 at 13:34
-
1You probably should have mentioned that in your question, then. – womble Jul 09 '12 at 13:37