From 18cd0c690289bd12ab4fff3fba2581634c55dafd Mon Sep 17 00:00:00 2001 From: ChiefGyk Date: Thu, 30 Jun 2016 08:57:35 -0400 Subject: [PATCH] removed dialog.sh which had the geoblock options, and fixed typo in tor.sh for the optional tor exit node block --- setup/dialog.sh | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 setup/dialog.sh diff --git a/setup/dialog.sh b/setup/dialog.sh deleted file mode 100644 index f552fabb..00000000 --- a/setup/dialog.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash - -HEIGHT=30 -WIDTH=80 -CHOICE_HEIGHT=4 -BACKTITLE="Do you want to block China and/or Korea?" -TITLE="Country Block" -MENU="A lot of spam, as well as malicious traffic originates from Korea and China. If you don't plan on having to ever have those countries connect to your server you may block them. - This will add a cron that will update weekly, and block all IP blocks to those countries you choose - Choose one of the following options:" - -OPTIONS=(1 "China" - 2 "Korea" - 3 "China and Korea" - 4 "Do nothing") - -CHOICE=$(dialog --clear \ - --backtitle "$BACKTITLE" \ - --title "$TITLE" \ - --menu "$MENU" \ - $HEIGHT $WIDTH $CHOICE_HEIGHT \ - "${OPTIONS[@]}" \ - 2>&1 >/dev/tty) - -clear -case $CHOICE in - 1) - echo "Are you Donald Trump?" - cp conf/blacklist/china /etc/cron.weekly/china - chmod +x /etc/cron.weekly/china - time /etc/cron.weekly/china - ;; - 2) - echo "Starting the Korean war again" - cp conf/blacklist/korea /etc/cron.weekly/korea - chmod +x /etc/cron.weekly/korea - time /etc/cron.weekly/korea - ;; - 3) - echo "Blocking almost 1/3 of the world" - cp conf/blacklist/sinokorea /etc/cron.weekly/sinokorea - chmod +x /etc/cron.weekly/sinokorea - time /etc/cron.weekly/sinokorea - ;; - 4) echo "Doing nothing" - ;; -esac \ No newline at end of file