This commit is contained in:
Chris Nutter committed 2020-10-01 16:56:15 -07:00
1 parent df66b828b2
commit 686037741c
10 files changed
+181 -296

No files matched your search

+2 -1
View File
@@ -8,7 +8,8 @@ echo "Make sure you are 100% the connection you have is proper or else it'll ass
echo "Ctrl-C or Ctrl-D to cancel now. Otherwise Press any key to continue..."
read -p ""
if wget http://ipecho.net/plain -O - -q | grep -A 2 --quiet -oh "107.221." # Add more to the public to make it more accurate however this should be fine.
#if wget http://ipecho.net/plain -O - -q | grep -A 2 --quiet -oh "107.221." # Add more to the public to make it more accurate however this should be fine.
if curl ipinfo.io/ip | grep -A 2 --quiet -oh "107.221." # Switched ip websites, this one should work the same just curl is cleaner.
then
sed '8 s/#192.168.1.66/192.168.1.66/g' /etc/hosts > /tmp/hosts
mv /tmp/hosts /etc/hosts