aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/dhcp/dhcp_4.3.bbappend
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2014-08-25 13:43:48 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-08-25 13:44:03 -0400
commit2d4fa14e545084acd35cbe19e32807ff96d93859 (patch)
tree981793be8cb017d132ee915337befc30d273cddd /recipes-connectivity/dhcp/dhcp_4.3.bbappend
parente9136650b58e24c4641e7cf008c857f349c92c03 (diff)
downloadmeta-cloud-services-2d4fa14e545084acd35cbe19e32807ff96d93859.tar.gz
meta-cloud-services-2d4fa14e545084acd35cbe19e32807ff96d93859.tar.bz2
meta-cloud-services-2d4fa14e545084acd35cbe19e32807ff96d93859.zip
bbappends: resync bbappends to oe-core/meta-oe latest
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-connectivity/dhcp/dhcp_4.3.bbappend')
-rw-r--r--recipes-connectivity/dhcp/dhcp_4.3.bbappend16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-connectivity/dhcp/dhcp_4.3.bbappend b/recipes-connectivity/dhcp/dhcp_4.3.bbappend
new file mode 100644
index 00000000..f5fb44ad
--- /dev/null
+++ b/recipes-connectivity/dhcp/dhcp_4.3.bbappend
@@ -0,0 +1,16 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://dhclient-exit-hooks \
+ "
+
+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%netbios-name-servers,.*netbios-scope;%netbios-name-servers, netbios-scope, classless-static-routes;\n%g' -i ${D}${sysconfdir}/dhcp/dhclient.conf
+
+}
+
+FILES_dhcp-client += "${sysconfdir}/dhcp/dhclient-exit-hooks \
+ "