From ae47be0ce92376c64f37deb9fd96217d3fe87782 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Wed, 17 Aug 2016 18:59:00 +0100 Subject: [PATCH] Add HelpFunc --- gravity.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gravity.sh b/gravity.sh index 6278d80a..b5b119f3 100755 --- a/gravity.sh +++ b/gravity.sh @@ -27,6 +27,18 @@ else fi fi +function helpFunc() +{ + echo "::: Pull in domains from adlists" + echo ":::" + echo "::: Usage: pihole -g" + echo ":::" + echo "::: Options:" + echo "::: -f, --force Force lists to be downloaded, even if they don't need updating." + echo "::: -h, --help Show this help dialog" + exit 1 +} + piholeIPfile=/etc/pihole/piholeIP piholeIPv6file=/etc/pihole/.useIPv6