mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2026-12-05 00:38:42 +00:00
Generating lease-file location based on config file. Place it on OpenWRT into /tmp => memory
Conflicts: CHANGELOG
This commit is contained in:
1 parent
de5318e2f3
commit
7fd7840ff4
4 files changed
+8
-1
No files matched your search
@@ -10,6 +10,8 @@ NOTE: This may only be a partial changelog, check github / your package manager
|
||||
* [Fixed] General cleaning
|
||||
* [Removed] [Testing] Executable, we will stick to service based
|
||||
* [New] possibility in install_piratebox.sh to exchange the hostname easily
|
||||
* [Fixed] Hide dot files in directory-listing which are usually hidden files
|
||||
* [New] Moved DHCP leasefile into memory on OpenWRT system (/tmp is memory)
|
||||
|
||||
=== v0.6G ===
|
||||
* [Fixed] Hide dot files in directory-listing which are usually hidden files
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user