Jacob Salmela
d859d925e3
Merge pull request #47 from mospaeda/master
...
Tools are missing for chronometer.sh
9 years ago
Jacob Salmela
d52fdde2f8
using double bracket notation
...
Despite the script running successfully, it produced this error:
`/usr/local/bin/gravity.sh: line 8: [: missing `]'`
prior to this fix.
9 years ago
Jacob Salmela
533f707578
Merge pull request #45 from jofrep/IP-as-input-parameter
...
Allow external IP as an input script parameter
9 years ago
Jofre Palau
4ea397bc71
Removed extra blank space if no IP added
9 years ago
mospaeda
7b49677d24
add install for bc and toilet tools
...
these tools are needed later by chronometer.sh
9 years ago
mospaeda
56d4b7b0f7
Update basic-install.sh
9 years ago
mospaeda
96bc557e21
Update basic-install.sh
9 years ago
mospaeda
11fcfc4bf5
Update basic-install.sh
9 years ago
Jacob Salmela
2ca9b6b005
Merge pull request #42 from hawson/noswap
...
Allow for local settings to disable swap
9 years ago
Jofre Palau
885069d440
Allow external IP as an input script parameter: ./gravity.sh 123.123.123.123
9 years ago
mospaeda
6fc798ebe4
Update basic-install.sh
9 years ago
mospaeda
2b4500363b
Update basic-install.sh
9 years ago
mospaeda
2d91a7a3c4
Update basic-install.sh
9 years ago
mospaeda
d15a085dd0
Update basic-install.sh
9 years ago
mospaeda
8718321727
Update basic-install.sh
9 years ago
mospaeda
d44e48114e
Merge pull request #4 from jacobsalmela/master
...
Rebase
9 years ago
Jesse Becker
cfac2be334
toggle test case for noswap
9 years ago
Jesse Becker
4a4db7ab56
Allow for local settings to disable swap
9 years ago
Jacob Salmela
23713d82a0
1.6 million instead of 900,000
...
Updating to reflect the latest amount of domains the Pi-hole blocks.
9 years ago
Jacob Salmela
e19a6c3624
Merge pull request #38 from korhadris/master
...
Fixes #32 and fixes #35
9 years ago
jacobsalmela
2792238472
Merge remote-tracking branch 'origin/development'
9 years ago
jacobsalmela
fa77b7b69d
increase swap to fix #37 memory error
...
This will increase the swap file to 500MB before downloading the lists.
Most of the issue comes from the mahakala list, which is so large. If
no swap file is found, one is created.
9 years ago
jacobsalmela
d68c262b96
swap file to eliminate memory allocation error
9 years ago
korhadris
98c94912e1
Replace use of grep -w with grep -x.
...
Prepend "^" to start of latentWhitelist.txt lines.
The -x switch requires a full line match of the regexp, where as -w
will try to find the match somewhere in the line, looking for work
breaks. Combined with turning the whitelist lines into full regexps,
this results in significantly faster parsing.
Having "^" prepended to the lines also keeps false whitelisting from
occuring, such as the following example:
If whitelist.txt contains "google.com" it would whitelist many other
sites that end in "google.com" as long as there is a non-word
character preceeding the google (such as "-", or ".").
9 years ago
korhadris
a26377d229
Append ad list sources to latentWhitelist.txt to prevent them from being filtered.
...
Additional fixes for #35 . This will prevent our own sources from being
filtered out by competing source lists.
9 years ago
korhadris
e464c04490
Ignore domains in ad lists that do not contain `.` characters.
...
This will skip entries such as `localhost`, `android`, `debian` and
empty lines as listed in #35 .
9 years ago
korhadris
bb7db11214
Changing printouts when updating sources to tell what is going on when
...
manually running gravity.sh
This will print "Getting $domain list... " for each domain, followed
by either "Done" if data was received and validated, or "Skipping
list because it does not have any new entries" if no updates were
needed.
9 years ago
korhadris
1f29d01694
Remove leading and trailing whitespace and `.` characters and
...
duplicate `.` characters as each list is stored.
Should fix #32 .
9 years ago
korhadris
d6d192cb0a
Use `url` variable to store `${sources[$i]}` value to improve readability.
...
I also wanted to replace the for loop iterating over indices with
something like:
`for url in $sources[@]}`
It made the use of `$i` in the save location more annoying though.
9 years ago
korhadris
0ec6eab683
Appending ".$justDomainsExtension" to $saveLocation variable.
...
Every use of $saveLocation was adding this and making lines
longer.
9 years ago
korhadris
159b29b80b
Replace spaces with tabs to make indentation consistent within the file.
9 years ago
Jacob Salmela
77a3c5f8b3
Merge pull request #33 from mathiasschopmans/patch-1
...
Fix URL of chronometer.sh
9 years ago
Mathias
46bda342a9
Fix URL of chronometer.sh
...
Github URLs seems to be case-sensitive. Now the chronometer.sh souldn't contain "Not Found" anymore. ;)
9 years ago
Jacob Salmela
5ed08b44a5
Merge pull request #29 from Fourdee/master
...
Patch 3 - Dont use /etc/hosts
9 years ago
Fourdee
52ef76d717
missed a few more /etc/host changes
9 years ago
Dan
024395b73b
Update chronometer.sh
...
Missed a change todaysAdsEliminated to /\/etc\/pihole\/gravity.list/
9 years ago
Fourdee
9d99a4ef36
Patch 3 - Dont use /etc/hosts
...
/etc/pihole/gravity.list now stores the block list. Ensures the
/etc/hosts file is left untouched.
9 years ago
Jacob Salmela
2d96f005e6
Merge pull request #28 from Fourdee/patch-2
...
Adjusting chronomiter.sh to use the new /var/log/pihole.log
9 years ago
Jacob Salmela
1a57e6f5b0
Merge pull request #27 from Fourdee/patch-1
...
Log Pi-hole DNS stats to /var/log/pihole.log instead of the shared /var/log/daemon.log
9 years ago
Dan
9627b27f15
pihole logfile changes
...
https://github.com/jacobsalmela/pi-hole/pull/27
9 years ago
Dan
9230be63d5
.log extension
9 years ago
Dan
e20f948e49
Log PiHole dns stats to /var/log/pihole
...
Log PiHole dns stats to /var/log/pihole
Removes the requirement for rsyslog and reading the shared logfile /var/log/daemon.log
9 years ago
jacobsalmela
1ee2d08703
donate buttons and link to Web interface
9 years ago
jacobsalmela
11614263b8
better version of LCD display stats
9 years ago
jacobsalmela
9a2862de62
closes #24 whitelist without running gravity.sh
...
It's pretty slow because /etc/hosts is so large, but it works. You can
add any number of domains as arguments and it will search for and
remove each one.
Maybe someone smarter knows how to make it faster...
9 years ago
jacobsalmela
563db80b6d
resolves #25
...
Will not count blank lines if they happen to exist.
9 years ago
jacobsalmela
8f961c1aaa
resolves #22
...
This lets dnsmasq re-read the hosts file without disturbing the daemon.
So any new entries can be used as soon as gravity.sh is finished
running
9 years ago
Jacob Salmela
bfd536402c
Merge pull request #23 from rmceoin/master
...
Parses host only file formats now.
9 years ago
rmceoin
f6ccb4b658
Merge remote-tracking branch 'upstream/master'
9 years ago
rmceoin
37e926ce84
Parses host only file formats now. Previously only handled hosts file format.
...
Specifically, it can now handle the following list:
'http://mirror1.malwaredomains.com/files/justdomains '
9 years ago