В Wed, 11 Sep 2013 14:18:04 +0100 Colin Watson <cjwat...@ubuntu.com> пишет:
> > +int > +grub_menu_get_hotkey (void) > +{ > + char *val; > + int hotkey; > + > + val = grub_env_get ("hotkey"); > + if (! val) > + return -1; > + > + grub_error_push(); > + > + hotkey = (int) grub_strtoul (val, 0, 10); > + > + /* If the value is invalid, unset the variable. */ Why only if invalid? This is one time event which should be reset as soon as it is consumed. Actually I'm not sure if user visible environment variable is needed at all - just make it a global variable in normal.mod. _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel