thelonelycoder
Part of the Furniture
Note: That only works if you do a fresh install, update or change the hosts file type.For a simple hack , I modified line 544 of the ab-solution.sh 1.0 script to reflect my pixelserv ip of 192.168.2.1:
Code:cat \$dir/temp1 | sed -e 's/127.0.0.1/192.168.2.1/g' -e 's/0.0.0.0/192.168.2.1/g' | sed \$'s/\r\$//' | grep -w ^192.168.2.1 | awk '{print \$1 " " \$2}' > \$dir/temp2
The sed statement was changed to add a double pass of the lists to change all 0.0.0.0 and 127.0.0.1 to 192.168.2.1 . And of course changed the address in the grep statement.
and line 827 of the script to:
Code:if grep -q "192.168.2.1" $installDirPath/hosts-adblock;then
just changed address.
All appears to be working so far although the internet did choke up a bit after 20 minutes of testing but I couldn't ascertain if this was related to the mod/script or my poor cell coverage (tethered) before I had to leave computer. Should have more chances to test maybe later today, if not tomorrow.
Dex