From cb91b8f5fa6925c74ed2bc1d3e4db461324b28c3 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sun, 6 Dec 2015 05:55:50 -0800 Subject: [PATCH] Add copyright headers --- advanced/Scripts/chronometer.sh | 9 ++++++++- advanced/Scripts/piholeLogFlush.sh | 10 +++++++++- advanced/Scripts/whitelist.sh | 10 +++++++++- gravity.sh | 7 ++++++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/advanced/Scripts/chronometer.sh b/advanced/Scripts/chronometer.sh index 7321976..d3ce783 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.sh @@ -1,6 +1,13 @@ -#!/bin/bash +#!/usr/bin/env bash # Displays Pi-hole stats on the Adafruit PiTFT 2.8" touch screen # Set the pi user to log in automatically and run this script from /etc/profile +# (c) 2015 by Jacob Salmela +# This file is part of Pi-hole. +# +# Pi-hole is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. for (( ; ; )) do clear diff --git a/advanced/Scripts/piholeLogFlush.sh b/advanced/Scripts/piholeLogFlush.sh index 9647fe2..832c98c 100755 --- a/advanced/Scripts/piholeLogFlush.sh +++ b/advanced/Scripts/piholeLogFlush.sh @@ -1,3 +1,11 @@ -#!/bin/bash +#!/usr/bin/env bash # Flushes /var/log/pihole.log +# (c) 2015 by Jacob Salmela +# This file is part of Pi-hole. +# +#Pi-hole is free software: you can redistribute it and/or modify +#it under the terms of the GNU General Public License as published by +#the Free Software Foundation, either version 2 of the License, or +#(at your option) any later version. + truncate -s 0 /var/log/pihole.log diff --git a/advanced/Scripts/whitelist.sh b/advanced/Scripts/whitelist.sh index cda557c..f66f56d 100755 --- a/advanced/Scripts/whitelist.sh +++ b/advanced/Scripts/whitelist.sh @@ -1,4 +1,12 @@ -#!/bin/bash +#!/usr/bin/env bash +# (c) 2015 by Jacob Salmela +# This file is part of Pi-hole. +# +# Pi-hole is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. + whitelist=/etc/pihole/whitelist.txt adList=/etc/pihole/gravity.list if [[ ! -f $whitelist ]];then diff --git a/gravity.sh b/gravity.sh index 7d9440a..9e63670 100755 --- a/gravity.sh +++ b/gravity.sh @@ -1,9 +1,14 @@ #!/usr/bin/env bash # Pi-hole: A black hole for Internet advertisements -# (c) 2015 by Jacob Salmela GPL 2.0 +# (c) 2015 by Jacob Salmela # Network-wide ad blocking via your Raspberry Pi # http://pi-hole.net # Compiles a list of ad-serving domains by downloading them from multiple sources +# +# Pi-hole is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. piholeIPfile=/tmp/piholeIP if [[ -f $piholeIPfile ]];then