Compare commits

...

3 commits
rest ... master

Author SHA1 Message Date
b1907ea8ae
fixed dnsmasq file replacement 2018-03-21 23:49:36 +01:00
e41c8347c6
fixed dhcp - still needs testing!
added dnsmasq.conf copy line to set dhcp server addresses to 192.168.12.50+ range. Should work now. Tested on a live unit; script still needs testing + image creating.
2018-03-21 00:20:11 +01:00
6925823401
This file fixes the DHCP server issue in standalone mode. 2018-03-21 00:18:17 +01:00
2 changed files with 18 additions and 0 deletions

15
dnsmasq.conf Normal file
View file

@ -0,0 +1,15 @@
interface=wlan0 # Use the require wireless interface - usually wlan0
dhcp-range=192.168.12.50,192.168.12.150,255.255.255.0,24h
address=/apple.com/192.168.12.1
address=/appleiphonecell.com/192.168.12.1
address=/airport.us/192.168.12.1
address=/akamaiedge.net/192.168.12.1
address=/akamaitechnologies.com/192.168.12.1
address=/microsoft.com/192.168.12.1
address=/msftncsi.com/192.168.12.1
address=/msftconnecttest.com/192.168.12.1
address=/google.com/192.168.12.1
address=/gstatic.com/192.168.12.1
address=/googleapis.com/192.168.12.1
address=/android.com/192.168.12.1

View file

@ -39,6 +39,9 @@ sudo systemctl enable CosmicPi-UI.service
echo "--- changing static ip address to 192.168.12.1 in standalone mode---"
cp -f dhcpcd.conf /etc/dhcpcd.conf
sudo systemctl stop dnsmasq
cp -f dnsmasq.conf /etc/dnsmasq.conf
sudo systemctl start dnsmasq
#echo"--- preventing this script from running next reboot ---"
#chmod +x normalrc.local