[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] savedefault

From: Bean
Subject: Re: [PATCH] savedefault
Date: Sun, 7 Jun 2009 17:35:01 +0800


Actually, I'm thinking about a more generic method to implement this
feature with events. The menu viewer fire events at certain
circumstance, and we can configure the commands to execute. For
example, we could have a event fire when a menu item is
selected, and use something like this in grub.cfg:

event add save_env saved_entry

Command "save_env saved_entry" would be run automatically, no need to
patch up the menu items.

One advantage with the event model is that it can handle password at
the same time, for example, we could write something like this:

event add menu.select_check password
event add menu.commandline_check password

password command is run when user tries to select the menu item or
enter command line.

On Mon, Jun 1, 2009 at 6:48 PM, Vladimir 'phcoder'
Serbinenko<address@hidden> wrote:
> Hello. Here is a long-awaited savedefault patch. Works correctly only
> if my scripting fix is applied
> --
> Regards
> Vladimir 'phcoder' Serbinenko
> _______________________________________________
> Grub-devel mailing list
> address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]