1 |
vip-ire |
1.1 |
--- e-smith-base-5.2.0/root/var/service/dhcpd/run.fix_empty_file_test 2010-10-14 18:14:37.000000000 +0200 |
2 |
|
|
+++ e-smith-base-5.2.0/root/var/service/dhcpd/run 2010-10-14 18:15:24.000000000 +0200 |
3 |
|
|
@@ -30,7 +30,7 @@ |
4 |
|
|
/sbin/e-smith/expand-template $configfile |
5 |
|
|
|
6 |
|
|
# Relocate the leases file to its new location |
7 |
|
|
-if [ -e /var/lib/dhcp/dhcpd.leases -a ! -z /var/lib/dhcpd/dhcpd.leases ]; then |
8 |
|
|
+if [ -e /var/lib/dhcp/dhcpd.leases -a ! -s /var/lib/dhcpd/dhcpd.leases ]; then |
9 |
|
|
mv -f /var/lib/dhcp/dhcpd.leases \ |
10 |
|
|
/var/lib/dhcpd/dhcpd.leases |
11 |
|
|
fi |