Generating lease-file location based on config file. Place it on OpenWRT into /tmp => memory

This commit is contained in:
Matthias Strubel committed 2013-08-11 17:09:03 +02:00
1 parent 958f18f819
commit 5a5f3acce9
4 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -9,5 +9,5 @@ NOTE: This may only be a partial changelog, check github / your package manager
* [New] install dependencies
* [Fixed] General cleaning
* [Fixed] Hide dot files in directory-listing which are usually hidden files
* [New] Moved DHCP leasefile into memory on OpenWRT system (/tmp is memory)
+1
View File
@@ -48,6 +48,7 @@ $(OPENWRT_CONFIG_FOLDER):
sed 's:DNSMASQ_INTERFACE="wlan0":DNSMASQ_INTERFACE="br-lan":' -i $@/piratebox.conf
sed 's:192.168.77:192.168.1:g' -i $@/piratebox.conf
sed 's:DROOPY_USE_USER="yes":DROOPY_USE_USER="no":' -i $@/piratebox.conf
sed 's:LEASE_FILE_LOCATION=$PIRATEBOX_FOLDER/tmp/lease.file:LEASE_FILE_LOCATION=/tmp/lease.file:' -i $@/piratebox.conf
$(OPENWRT_BIN_FOLDER):
mkdir -p $@
@@ -45,7 +45,7 @@ set_pathnames() {
DEFAULT_HOSTS=$CONFIG_PATH/hosts
DEFAULT_DNSMASQ=$CONFIG_PATH/dnsmasq_default.conf
RADVD_CONFIG=$CONFIG_PATH/radvd_generated.conf
LEASE_FILE=$1/tmp/leases
LEASE_FILE=$LEASE_FILE_LOCATION
LIGHTTPD_ENV_CONFIG=$CONFIG_PATH/lighttpd/env
}
+4
View File
@@ -97,6 +97,10 @@ END_LEASE=250
#Leasetime (When should the client renew it's IP)
LEASE_DURATION=12h
# Where is the leasefile stored to?
LEASE_FILE_LOCATION=$PIRATEBOX_FOLDER/tmp/lease.file
# Define the netmask
NETMASK=255.255.255.0