aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2014-08-20 15:10:15 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-08-27 10:08:52 -0400
commit8a7209f3e5eeb664ca92a4a122c8aa70b90c548f (patch)
tree914fac10a29335c1b87acfb923c0637a85589969
parent5e88a5034f6bb276e8d86768067ce7727d7c559f (diff)
downloadmeta-cloud-services-8a7209f3e5eeb664ca92a4a122c8aa70b90c548f.tar.gz
meta-cloud-services-8a7209f3e5eeb664ca92a4a122c8aa70b90c548f.tar.bz2
meta-cloud-services-8a7209f3e5eeb664ca92a4a122c8aa70b90c548f.zip
dhcp: fix double 'request' in dhclient.conf
commit 43e2b093040734d4c4b28db96a634cd2a5f3271b [dhcp: add dhcp classless static route support] had a flaw in one of do_install_append() sed expressions in the dhcp recipe that caused a duplicate 'request' keyword to be inserted in to the dhclient.conf file. The result was that results returned for the request were not as expected and the resolv.conf would be empty. Fixing up the sed expression removes the duplicate and allows things to function properly. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
-rw-r--r--recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend b/recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend
index f5fb44a..a23f7c9 100644
--- a/recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend
+++ b/recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend
@@ -7,7 +7,7 @@ do_install_append () {
install -m 0644 ${WORKDIR}/dhclient-exit-hooks ${D}${sysconfdir}/dhcp/dhclient-exit-hooks
sed 's%/etc/dhclient-exit-hooks%/etc/dhcp/dhclient-exit-hooks%g' -i ${D}${base_sbindir}/dhclient-script
- sed 's%request .*%\noption classless-static-routes code 121 = array of unsigned integer 8;\n\nrequest &%g' -i ${D}${sysconfdir}/dhcp/dhclient.conf
+ sed 's%request .*%\noption classless-static-routes code 121 = array of unsigned integer 8;\n\n&%g' -i ${D}${sysconfdir}/dhcp/dhclient.conf
sed 's%netbios-name-servers,.*netbios-scope;%netbios-name-servers, netbios-scope, classless-static-routes;\n%g' -i ${D}${sysconfdir}/dhcp/dhclient.conf
}