Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b1907ea8ae | |||
| e41c8347c6 | |||
| 6925823401 |
2 changed files with 18 additions and 0 deletions
15
dnsmasq.conf
Normal file
15
dnsmasq.conf
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue