From a694eaca685a85e0556a296ff5e9eaa9cf95d23e Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Wed, 11 Dec 2024 12:34:36 -0800 Subject: [PATCH] Change AP mode dhcp range to match Network manager When configuring an access point with Network Manager, it uses a dhcp range of x.x.x.10-254, with no apparent way to change that. Prior to this change, TeslaUSB would use a dhcp range of 100-150, but this change changes that to 10-254, so that both methods of configuring an access point use the same range. --- .../files/teslausb_setup_variables.conf.sample | 2 +- setup/pi/configure-ap.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pi-gen-sources/00-teslausb-tweaks/files/teslausb_setup_variables.conf.sample b/pi-gen-sources/00-teslausb-tweaks/files/teslausb_setup_variables.conf.sample index f8f22c59..4f063d66 100644 --- a/pi-gen-sources/00-teslausb-tweaks/files/teslausb_setup_variables.conf.sample +++ b/pi-gen-sources/00-teslausb-tweaks/files/teslausb_setup_variables.conf.sample @@ -126,7 +126,7 @@ export WIFIPASS='your_pass' # Also note that the wifi password must be at least 8 characters. #export AP_PASS='password' # IP address is optional. The AP will give its clients IP addresses in the -# x.x.x.100-150 range so make sure you don't put the AP's IP address in +# x.x.x.10-254 range so make sure you don't put the AP's IP address in # that range. #export AP_IP='192.168.66.1' diff --git a/setup/pi/configure-ap.sh b/setup/pi/configure-ap.sh index dfb56371..7906e79e 100644 --- a/setup/pi/configure-ap.sh +++ b/setup/pi/configure-ap.sh @@ -138,7 +138,7 @@ then no-dhcp-interface=lo,wlan0 bind-interfaces bogus-priv - dhcp-range=${NET}.100,${NET}.150,12h + dhcp-range=${NET}.10,${NET}.254,12h # don't configure a default route, we're not a router dhcp-option=3 EOF