1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm mezzanine_patched_e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm |
2 |
--- e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm 2010-10-12 19:29:24.000000000 +0200 |
3 |
+++ mezzanine_patched_e-smith-base-5.2.0/root/usr/lib/perl5/site_perl/esmith/console/configure.pm 2010-10-12 19:27:59.000000000 +0200 |
4 |
@@ -1690,7 +1690,7 @@ |
5 |
unless ((($start & $netmask) == $localnet) && |
6 |
(($end & $netmask) == $localnet)) |
7 |
{ |
8 |
- my $dhcpLeases = "/var/lib/dhcp/dhcpd.leases"; |
9 |
+ my $dhcpLeases = "/var/lib/dhcpd/dhcpd.leases"; |
10 |
open (WR, ">$dhcpLeases") |
11 |
or die gettext("Can't open output file"), |
12 |
" $dhcpLeases", ": $!\n"; |
13 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-base-5.2.0/root/var/service/dhcpd/run mezzanine_patched_e-smith-base-5.2.0/root/var/service/dhcpd/run |
14 |
--- e-smith-base-5.2.0/root/var/service/dhcpd/run 2005-11-21 05:28:11.000000000 +0100 |
15 |
+++ mezzanine_patched_e-smith-base-5.2.0/root/var/service/dhcpd/run 2010-10-12 19:26:51.000000000 +0200 |
16 |
@@ -23,12 +23,18 @@ |
17 |
interface=$(/sbin/e-smith/db configuration getprop InternalInterface Name) |
18 |
|
19 |
configfile=/etc/dhcpd.conf |
20 |
-leasefile=/var/lib/dhcp/dhcpd.leases |
21 |
+leasefile=/var/lib/dhcpd/dhcpd.leases |
22 |
|
23 |
/bin/touch $leasefile |
24 |
|
25 |
/sbin/e-smith/expand-template $configfile |
26 |
|
27 |
+# Relocate the leases file to its new location |
28 |
+if [ -e /var/lib/dhcp/dhcpd.leases -a ! -z /var/lib/dhcpd/dhcpd.leases ]; then |
29 |
+ mv -f /var/lib/dhcp/dhcpd.leases \ |
30 |
+ /var/lib/dhcpd/dhcpd.leases |
31 |
+fi |
32 |
+ |
33 |
exec /usr/sbin/dhcpd -d -f \ |
34 |
-cf $configfile \ |
35 |
-lf $leasefile \ |