A bug has surfaced recently in 4.1.1b1 of dhcp as loaded from ftp.isc.org.
This bug prevents dhclient from running in either IPv4 or IPv6
configurations due to syntax errors in the linux version of the
dhclient-script file. This patch corrects that problem.
enjoy...-ahc-
Submitted by: Andy Campbell <[email protected]>
Date: 2009-08-21
Initial Package Version: 4.1.1b1
Upstream Status: Submitted Upstream
Origin: Andy Campbell
Description:
This patch fixes syntax errors found in the linux version of
dhclient-script centered around IPv6 handling, thus preventing dhclient
from running even in an IPv4 only system.
diff -Nuar dhcp-4.1.1b1/client/scripts/linux new/client/scripts/linux
--- dhcp-4.1.1b1/client/scripts/linux 2008-05-23 06:56:07.000000000 -0700
+++ new/client/scripts/linux 2009-08-21 22:55:26.000000000 -0700
@@ -233,7 +233,7 @@
### DHCPv6 Handlers
###
-if [ ${reason} = PREINIT6 ] ; then
+if [ x${reason} = xPREINIT6 ] ; then
# Ensure interface is up.
${ip} link set ${interface} up
@@ -249,7 +249,7 @@
exit_with_hooks 0
fi
-if [ ${reason} = BOUND6 ] ; then
+if [ x${reason} = xBOUND6 ] ; then
if [ x${new_ip6_address} = x ] || [ x${new_ip6_prefixlen} = x ] ; then
exit_with_hooks 2;
fi
@@ -263,7 +263,7 @@
exit_with_hooks 0
fi
-if [ ${reason} = RENEW6 ] || [ ${reason} = REBIND6 ] ; then
+if [ x${reason} = xRENEW6 ] || [ x${reason} = xREBIND6 ] ; then
# Make sure nothing has moved around on us.
# Nameservers/domains/etc.
@@ -275,7 +275,7 @@
exit_with_hooks 0
fi
-if [ ${reason} = DEPREF6 ] ; then
+if [ x${reason} = xDEPREF6 ] ; then
if [ x${new_ip6_prefixlen} = x ] ; then
exit_with_hooks 2;
fi
@@ -286,7 +286,7 @@
exit_with_hooks 0
fi
-if [ ${reason} = EXPIRE6 -o ${reason} = RELEASE6 -o ${reason} = STOP6 ] ; then
+if [ x${reason} = xEXPIRE6 -o x${reason} = xRELEASE6 -o x${reason} = xSTOP6 ]
; then
if [ x${old_ip6_address} = x ] || [ x${old_ip6_prefixlen} = x ] ; then
exit_with_hooks 2;
fi
--
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page