[OE-core] [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm

2012-02-06 Thread Otavio Salvador
Both server and client needs access to leases files so its creation and removal are now handled by postinst/postrm scripts. Signed-off-by: Otavio Salvador ota...@ossystems.com.br --- meta/recipes-connectivity/dhcp/dhcp.inc | 19 ++-

Re: [OE-core] [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm

2012-02-06 Thread Phil Blundell
On Mon, 2012-02-06 at 11:03 +, Otavio Salvador wrote: +pkg_postrm_dhcp-server() { +rm -f $D/${localstatedir}/lib/dhcp/dhcpd.leases +rm -f $D/${localstatedir}/lib/dhcp/dhcpd6.leases +rmdir $D/${localstatedir}/lib/dhcp +} + +pkg_postrm_dhcp-client() { +rm -f

Re: [OE-core] [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm

2012-02-06 Thread Otavio Salvador
On Mon, Feb 6, 2012 at 09:13, Phil Blundell ph...@gnu.org wrote: On Mon, 2012-02-06 at 11:03 +, Otavio Salvador wrote: +pkg_postrm_dhcp-server() { +rm -f $D/${localstatedir}/lib/dhcp/dhcpd.leases +rm -f $D/${localstatedir}/lib/dhcp/dhcpd6.leases +rmdir

Re: [OE-core] [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm

2012-02-06 Thread Phil Blundell
On Mon, 2012-02-06 at 09:21 -0200, Otavio Salvador wrote: On Mon, Feb 6, 2012 at 09:13, Phil Blundell ph...@gnu.org wrote: On Mon, 2012-02-06 at 11:03 +, Otavio Salvador wrote: +pkg_postrm_dhcp-server() { +rm -f $D/${localstatedir}/lib/dhcp/dhcpd.leases

[OE-core] [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm

2012-02-06 Thread Otavio Salvador
Both server and client needs access to leases files so its creation and removal are now handled by postinst/postrm scripts. Signed-off-by: Otavio Salvador ota...@ossystems.com.br --- meta/recipes-connectivity/dhcp/dhcp.inc | 25 -