mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 06:08:21 +00:00
Testing script for a mini LCD
This script is for use with an Adafruit LCD so that you can peek at the domains as they are blocked in real time. It's not necessary for the Pi-hole to function, but something fun I am working on. There will be a video in the next article I post.
This commit is contained in:
parent
e6b17ae8e9
commit
9d5a7531ca
22
advanced/chronometer.sh
Executable file
22
advanced/chronometer.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# Infinite loop that can be used to display ad domains on a Pi touch screen
|
||||
# It will continually display ads that are blocked in real time on the screen
|
||||
# Set the pi user to log in automatically and add run this script from .bashrc
|
||||
clear
|
||||
echo ""
|
||||
echo " +-+-+-+-+-+-+-+ "
|
||||
echo " Pi-hole "
|
||||
echo " +-+-+-+-+-+-+-+ "
|
||||
echo ""
|
||||
echo " A black hole for"
|
||||
echo " Internet Ads "
|
||||
echo ""
|
||||
echo " http://pi-hole.net"
|
||||
echo ""
|
||||
echo " Pi-hole IP: $(ifconfig eth0 | awk '/inet addr/ {print $2}' | cut -d':' -f2)"
|
||||
echo ""
|
||||
echo "Ads blocked will show up once"
|
||||
echo "you set your DNS server."
|
||||
echo ""
|
||||
sleep 7
|
||||
tail -f /var/log/daemon.log | awk '/\/etc\/hosts/ {if ($7 != "address" && $7 != "name" && $7 != "/etc/hosts") print $7; else;}'
|
Loading…
Reference in New Issue
Block a user