diff options
Diffstat (limited to 'meta/recipes-connectivity/dhcp/dhcp.inc')
-rw-r--r-- | meta/recipes-connectivity/dhcp/dhcp.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/dhcp/dhcp.inc b/meta/recipes-connectivity/dhcp/dhcp.inc index 1cc529dd8d..f9d80e7831 100644 --- a/meta/recipes-connectivity/dhcp/dhcp.inc +++ b/meta/recipes-connectivity/dhcp/dhcp.inc | |||
@@ -51,13 +51,15 @@ do_install_append () { | |||
51 | mv ${D}${sbindir}/dhclient ${D}${base_sbindir}/ | 51 | mv ${D}${sbindir}/dhclient ${D}${base_sbindir}/ |
52 | fi | 52 | fi |
53 | install -m 0755 ${S}/client/scripts/linux ${D}${base_sbindir}/dhclient-script | 53 | install -m 0755 ${S}/client/scripts/linux ${D}${base_sbindir}/dhclient-script |
54 | |||
55 | install -d ${D}${localstatedir}/lib/dhcp/ | ||
54 | } | 56 | } |
55 | 57 | ||
56 | PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell" | 58 | PACKAGES += "dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell" |
57 | 59 | ||
58 | FILES_${PN} = "" | 60 | FILES_${PN} = "" |
59 | 61 | ||
60 | FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server" | 62 | FILES_dhcp-server = "${sbindir}/dhcpd ${sysconfdir}/init.d/dhcp-server ${localstatedir}/lib/dhcp/" |
61 | RRECOMMENDS_dhcp-server = "dhcp-server-config" | 63 | RRECOMMENDS_dhcp-server = "dhcp-server-config" |
62 | 64 | ||
63 | FILES_dhcp-server-config = "${sysconfdir}/default/dhcp-server ${sysconfdir}/dhcp/dhcpd.conf" | 65 | FILES_dhcp-server-config = "${sysconfdir}/default/dhcp-server ${sysconfdir}/dhcp/dhcpd.conf" |
@@ -68,3 +70,8 @@ FILES_dhcp-client = "${base_sbindir}/dhclient ${base_sbindir}/dhclient-script ${ | |||
68 | RDEPENDS_dhcp-client = "bash" | 70 | RDEPENDS_dhcp-client = "bash" |
69 | 71 | ||
70 | FILES_dhcp-omshell = "${bindir}/omshell" | 72 | FILES_dhcp-omshell = "${bindir}/omshell" |
73 | |||
74 | pkg_postinst_dhcp-server() { | ||
75 | touch $D/${localstatedir}/lib/dhcp/dhcpd.leases | ||
76 | touch $D/${localstatedir}/lib/dhcp/dhcpd6.leases | ||
77 | } | ||