Advertisement
devinteske

Conditional reloadbe execute

Dec 30th, 2015
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.53 KB | None | 0 0
  1. --- menu.rc.orig    2015-11-05 16:20:40.000000000 -0800
  2. +++ menu.rc 2015-11-05 16:20:22.000000000 -0800
  3. @@ -124,6 +124,14 @@ set menu_timeout_command="boot"
  4.  \  
  5.  try-include /boot/menu.rc.local
  6.  
  7. +\ Initialize boot environment variables
  8. +\
  9. +s" reloadbe" sfind ( xt|0 bool ) [if]
  10. +   s" bootenv_autolist" getenv dup -1 = [if] drop execute [else]
  11. +       s" YES" compare-insensitive 0= [if] execute [then]
  12. +   [then]
  13. +[else] drop ( xt=0 ) [then]
  14. +
  15.  \ Display the main menu (see `menu.4th')
  16.  set menuset_initial=1
  17.  menuset-loadinitial
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement