From 4d1fa206d14b9aba2adfd02c2b2d66625bd81b6b Mon Sep 17 00:00:00 2001 From: IMcPwn Date: Mon, 5 Oct 2015 18:29:18 -0400 Subject: [PATCH] Improve internet check formatting --- modules/responder | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/responder b/modules/responder index 62a2d37..3f19a3c 100644 --- a/modules/responder +++ b/modules/responder @@ -37,23 +37,23 @@ function start { if [[ ! $(opkg list-installed | grep git) ]]; then - check_internet echo "Git not installed. Installing..." + check_internet opkg update && opkg install git fi if [[ ! $(opkg list-installed | grep python-sqlite3) ]]; then - check_internet echo "Python-sqlite3 not installed. Installing..." + check_internet opkg update && opkg install python-sqlite3 fi if [[ ! -d /etc/turtle/Responder || ! -s /etc/turtle/Responder/Responder.py || ! -s /etc/turtle/Responder/Responder.conf ]]; then + echo "Responder files are not valid. Downloading..." check_internet rm -rf /etc/turtle/Responder - echo "Responder files are not valid. Downloading..." git clone git://github.com/SpiderLabs/Responder /etc/turtle/Responder fi @@ -197,7 +197,7 @@ function check_internet { ping -q -w 5 -c 1 lanturtle.com &> /dev/null && { : } || { - echo -e "The LAN Turtle is currently offline. Responder requires\nan internet connection to install dependencies." + echo -e "\nThe LAN Turtle is currently offline. The previous\noperation requires an internet connection." exit 1 } }