aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-connectivity/dhcp/dhcp_4.3.bbappend
diff options
context:
space:
mode:
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 0000000..f5fb44a
--- /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 \
+ "