The patches makes busybox udhcpc fetch option 233 like it did in previous 
unattended versions.
No changes is needed in the dhcp options when upgrading from 4.7

Uncomplicated patches, but it certainly makes my life easier :-)

"busybox-patch" is the readymade file to put in 'misc'

"Makefile-BB-udhcpc-option-233.patch" is the changes for linuxboot/Makefile.


--- unattended/linuxboot/Makefile-bf-busyboxpatch	2008-04-09 23:26:19.000000000 +0200
+++ unattended/linuxboot/Makefile	2008-04-09 23:53:28.000000000 +0200
@@ -136,13 +136,12 @@
 stage1 += stage1/bin/bash stage1/bin/sh
 
 ## BusyBox
-# This patch is to allow "udchpc --userclass=Unattended"
-#$(busybox)/.stamp-busybox-patch: misc/busybox-patch
-#	cd $(busybox) && patch -b -p1 < $(cwd)/$<
-#	touch $@
+# This patch makes udhcpc fetch option 233 from the dhcp server
+$(busybox)/.stamp-busybox-patch: misc/busybox-patch
+	cd $(busybox) && patch -b -p1 < $(cwd)/$<
+	touch $@
 
-#$(busybox)/.config: misc/busybox-config $(busybox)/.stamp-busybox-patch 
-$(busybox)/.config: misc/busybox-config
+$(busybox)/.config: misc/busybox-config $(busybox)/.stamp-busybox-patch 
 	cp -f $< $@
 	cd $(busybox) && make oldconfig
 
--- busybox-1.9.2/networking/udhcp/options.c.orginal	2008-04-09 22:00:49.000000000 +0200
+++ busybox-1.9.2/networking/udhcp/options.c	2008-04-09 22:11:12.000000000 +0200
@@ -46,6 +46,8 @@
 #if ENABLE_FEATURE_RFC3397
 	{ OPTION_STR1035 | OPTION_LIST            , 0x77 }, /* search             */
 #endif
+	/* Steal "local" option 0xe9 (decimal 233) for Unattended */
+	{ OPTION_STRING               | OPTION_REQ, 0xe9 }, /* unattend           */
 	/* MSIE's "Web Proxy Autodiscovery Protocol" support */
 	{ OPTION_STRING                           , 0xfc }, /* wpad               */
 
@@ -95,6 +97,7 @@
 #if ENABLE_FEATURE_RFC3397
 	"search" "\0"
 #endif
+	"unattend" "\0"
 	/* MSIE's "Web Proxy Autodiscovery Protocol" support */
 	"wpad" "\0"
 	;
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to