Intial commit

This commit is contained in:
2022-06-27 19:20:05 +02:00
commit 8724db3eb6
10 changed files with 543 additions and 0 deletions

7
UpdateIP.sh Normal file
View File

@@ -0,0 +1,7 @@
#Used for updating the ip subnet in DNSMasq
NetIF=<Set to name of network interface>
sleep 20
ipa=$(ip -4 addr show $NetIF | grep -m 1 -oP '(?<=inet\s)\d+(\.\d+){3}' | grep -E -o "([0-9]{1,3}[\.]){2}[0-9]{1,3}" |head -1 )
ipa="$ipa"".0"
sed -i '/dhcp-range/c\dhcp-range='"$ipa"',proxy' /etc/dnsmasq.conf
service dnsmasq restart