Thorsten Kampe <[EMAIL PROTECTED]> writes:

> Hello,
> I'm looking for a solution to "hook" somekind of a boot menu into the
> boot process. Something like

> '"Do you want to start the GUI (kdm)? [Y]es [N]o' If I select "Yes"
> within five seconds "/etc/init.d/xdm start" is executed - otherwise
> not.

> What's the best way to do this without changing or hacking baselayout
> (?) to much? Is there an "API"/hook that allows that?

You can do this by creating a file in /etc/init.d/ following the
standard runscript format, and which uses the Bash `read' built-in to
prompt the user.  Then just use rc-update to make it be run at boot.
Implementing a 5-second timeout in bash is probably not going to be
pretty -- but I believe it can be done.  You might want to use C or
python to do it instead though.

-- 
Jeremy Maitin-Shepard

--
[EMAIL PROTECTED] mailing list

Reply via email to