<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>Itay Gazit wrote:</tt>
<blockquote type="cite" cite="mid:5ac24b390912170842y4f369e8i8c3801b2d61b46cd@mail.gmail.com">
  <div dir="ltr">
  <div class="MsoNormal" style="margin: 0cm 0cm 0pt;"><tt><font size="3">Hi,</font></tt></div>
  <div class="MsoNormal" style="margin: 0cm 0cm 0pt;"><tt>&nbsp;</tt></div>
  <div class="MsoNormal" style="margin: 0cm 0cm 0pt;"><tt><font size="3">I
was asked to be able to activate/deactivate gPXE (deactivate - remove
it permanently from list of boot devices).</font></tt></div>
  <div class="MsoNormal" style="margin: 0cm 0cm 0pt;"><tt>&nbsp;</tt></div>
  <div class="MsoNormal" style="margin: 0cm 0cm 0pt;"><tt><font size="3">Assuming
I can use non-volatile memory to keep the gPXE status.</font></tt></div>
  <div class="MsoNormal" style="margin: 0cm 0cm 0pt;"><tt>&nbsp;</tt></div>
  <div class="MsoNormal" style="margin: 0cm 0cm 0pt;"><tt><font size="3">How
can I deactivate gPXE and activate it back via CLI?</font></tt></div>
  </div>
</blockquote>
<tt><font size="3"><br>
One somewhat ugly way to do this would be to re-purpose the NVRAM's
"filename" setting.&nbsp; Then you would embed the following gPXE script:<br>
<br>
#!gpxe<br>
${filename}<br>
<br>
gPXE could be de-activated when the "filename" setting is set to
"exit".&nbsp; It would be active if it was set to "autoboot".<br>
<br>
You might also consider the gPXE mailing list at
<a href="http://etherboot.org/mailman/listinfo/gpxe" class="moz-txt-link-freetext">http://etherboot.org/mailman/listinfo/gpxe</a><br>
<br>
- Shao Miller<br>
</font></tt>
</body>
</html>