diff options
author | Travis Kemen <thepeople@openwrt.org> | 2008-02-14 21:17:14 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2008-02-14 21:17:14 +0000 |
commit | a03a9308074d4c5f4ceba9c3acc9368eb6203f0d (patch) | |
tree | 0bde771c321eeb94c8098667b2d4ed85758f5256 | |
parent | c0d62a8c74305e1008ef1d0d15c450dc090782c8 (diff) | |
download | upstream-a03a9308074d4c5f4ceba9c3acc9368eb6203f0d.tar.gz upstream-a03a9308074d4c5f4ceba9c3acc9368eb6203f0d.tar.bz2 upstream-a03a9308074d4c5f4ceba9c3acc9368eb6203f0d.zip |
create the dhcp leasefile if it doesn't exist
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10460 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 62e2f51fed..1a24612633 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -63,6 +63,9 @@ dnsmasq() { append_parm "$cfg" "local" "-S" append_parm "$cfg" "leasefile" "-l" append_parm "$cfg" "resolvfile" "-r" + + config_get leasefile $cfg leasefile + [ -e "$leasefile" ] || touch "$leasefile" } dhcp_subscrid_add() { |