diff options
Diffstat (limited to 'recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend')
| -rw-r--r-- | recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend b/recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend new file mode 100644 index 0000000..f5fb44a --- /dev/null +++ b/recipes-connectivity/dhcp/dhcp_4.2.3-P2.bbappend | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" | ||
| 2 | |||
| 3 | SRC_URI += "file://dhclient-exit-hooks \ | ||
| 4 | " | ||
| 5 | |||
| 6 | do_install_append () { | ||
| 7 | install -m 0644 ${WORKDIR}/dhclient-exit-hooks ${D}${sysconfdir}/dhcp/dhclient-exit-hooks | ||
| 8 | sed 's%/etc/dhclient-exit-hooks%/etc/dhcp/dhclient-exit-hooks%g' -i ${D}${base_sbindir}/dhclient-script | ||
| 9 | |||
| 10 | sed 's%request .*%\noption classless-static-routes code 121 = array of unsigned integer 8;\n\nrequest &%g' -i ${D}${sysconfdir}/dhcp/dhclient.conf | ||
| 11 | sed 's%netbios-name-servers,.*netbios-scope;%netbios-name-servers, netbios-scope, classless-static-routes;\n%g' -i ${D}${sysconfdir}/dhcp/dhclient.conf | ||
| 12 | |||
| 13 | } | ||
| 14 | |||
| 15 | FILES_dhcp-client += "${sysconfdir}/dhcp/dhclient-exit-hooks \ | ||
| 16 | " | ||
