create list.sh. Combines whitelist and blacklist scripts in an effort to reduce code duplication.

update pihole script to reflect new white/blacklist command.
This commit is contained in:
Adam Warner
2016-10-26 09:36:02 +01:00
parent bc077acfb8
commit 469ff45f01
2 changed files with 168 additions and 4 deletions

6
pihole
View File

@@ -22,14 +22,12 @@ if [[ ! $EUID -eq 0 ]];then
fi
whitelistFunc() {
shift
/opt/pihole/whitelist.sh "$@"
/opt/pihole/list.sh "$@"
exit 0
}
blacklistFunc() {
shift
/opt/pihole/blacklist.sh "$@"
/opt/pihole/list.sh "$@"
exit 0
}