I have been using a patch that is similar to this for a while with grub.  I think it 
would be
useful for grub to send an option 60 tag.  This may not be the best way to do it, but 
it works.  I
was unable to get the version number into the option 60 tag by using VERSION or 
version_string. 
Maybe sending the version number is not really needed though.

So with this in my dhcpd.conf I have more control over the menus...

if substring (option vendor-class-identifier, 0, 4) = "GRUB" {
        option option-150 "/boot/grub/hostname.lst";
}

--- netboot/main.c.orig Sat Jan 18 21:13:02 2003
+++ netboot/main.c      Sat Jan 18 21:13:27 2003
@@ -82,6 +82,7 @@
   RFC2132_MSG_TYPE, 1, DHCPDISCOVER,
   RFC2132_MAX_SIZE,2,  /* request as much as we can */
   ETH_MAX_MTU / 256, ETH_MAX_MTU % 256,
+  RFC2132_VENDOR_CLASS_ID,4,'G','R','U','B',
   RFC2132_PARAM_LIST, 4, RFC1533_NETMASK, RFC1533_GATEWAY,
   RFC1533_HOSTNAME, RFC1533_EXTENSIONPATH
 };
@@ -93,6 +94,7 @@
   RFC2132_REQ_ADDR, 4, 0, 0, 0, 0,
   RFC2132_MAX_SIZE, 2, /* request as much as we can */
   ETH_MAX_MTU / 256, ETH_MAX_MTU % 256,
+  RFC2132_VENDOR_CLASS_ID,4,'G','R','U','B',
   /* request parameters */
   RFC2132_PARAM_LIST,
   /* 4 standard + 2 vendortags */


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to