[syslinux] complex menu and timeout handler [RESOLVED]

Murali Krishnan Ganapathy gmurali at cs.uchicago.edu
Wed Sep 28 09:58:49 PDT 2005


Just so you know, runsyslinuxcmd("linux") should never return, if 
everything goes well. Of course, you need the return statement else your 
compiler may complain. Ideally you should assume that "linux" is not 
defined or something weird happened if you did return from the 
runsyslinuxcmd and handle the error appropriately.

- Murali

Marco Descher wrote:

>i found a way to resolve to a selected default (linux):
>
>---  code modification
>TIMEOUTCODE ontimeout()
>{
>  //beep();
>  runsyslinuxcmd("linux");
>  return CODE_ENTER;
>}
>----
>
>cheers
>marco
>
>
>On Wed, 2005-09-28 at 10:21 +0200, Marco Descher wrote:
>  
>
>>hy,
>>
>>i'm looking for a way to register the start of a specific menu entry
>>(the parameter is "linux") with the ontimeout handler, unfortunately the
>>complex example only offers beep().
>>
>>what is the correct way to start this specific entry? something like
>>
>>char *call = "linux";
>>return call;
>>
>>thx in advance,
>>marco
>>
>>_______________________________________________
>>SYSLINUX mailing list
>>Submissions to SYSLINUX at zytor.com
>>Unsubscribe or set options at:
>>http://www.zytor.com/mailman/listinfo/syslinux
>>Please do not send private replies to mailing list traffic.
>>
>>    
>>
>
>_______________________________________________
>SYSLINUX mailing list
>Submissions to SYSLINUX at zytor.com
>Unsubscribe or set options at:
>http://www.zytor.com/mailman/listinfo/syslinux
>Please do not send private replies to mailing list traffic.
>
>
>  
>




More information about the Syslinux mailing list