|
@@ -34,7 +34,7 @@ systemctl stop dnsmasq
|
|
|
|
|
|
echo "Configuring Wlan0 static IP for 192.168.42.1/24"
|
|
|
echo "interface wlan0
|
|
|
- static ip_address=192.168.4.1/24
|
|
|
+ static ip_address=192.168.42.1/24
|
|
|
nohook wpa_supplicant" >> /etc/dhcpcd.conf
|
|
|
|
|
|
echo "Restarting dhcpcd..."
|
|
@@ -43,7 +43,7 @@ service dhcpcd restart
|
|
|
echo "Configuring dnsmasq..."
|
|
|
mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
|
|
|
echo "interface=wlan0 # Use the require wireless interface - usually wlan0
|
|
|
-dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h" > /etc/dnsmasq.conf
|
|
|
+dhcp-range=192.168.42.2,192.168.42.20,255.255.255.0,24h" > /etc/dnsmasq.conf
|
|
|
|
|
|
echo "Enabling dnsmasq and restart..."
|
|
|
systemctl unmask dnsmasq
|