Make first time download look nicer

Pipe opkg updating to /dev/null
Make git quiet
Notify user how to view log in real time
pull/8/head
IMcPwn 2015-10-24 15:25:33 -04:00
parent 6a1ce22832
commit 0e36c49ab1
1 changed files with 8 additions and 6 deletions

View File

@ -37,24 +37,24 @@ function start {
if [[ ! $(opkg list-installed | grep git) ]]; if [[ ! $(opkg list-installed | grep git) ]];
then then
echo "Git not installed. Installing..." echo "Dependency git not installed. Installing..."
check_internet check_internet
opkg update && opkg install git opkg update > /dev/null && opkg install git
fi fi
if [[ ! $(opkg list-installed | grep python-sqlite3) ]]; if [[ ! $(opkg list-installed | grep python-sqlite3) ]];
then then
echo "Python-sqlite3 not installed. Installing..." echo "Dependency python-sqlite3 not installed. Installing..."
check_internet check_internet
opkg update && opkg install python-sqlite3 opkg update > /dev/null && opkg install python-sqlite3
fi fi
if [[ ! -d /etc/turtle/Responder || ! -s /etc/turtle/Responder/Responder.py || ! -s /etc/turtle/Responder/Responder.conf ]]; if [[ ! -d /etc/turtle/Responder || ! -s /etc/turtle/Responder/Responder.py || ! -s /etc/turtle/Responder/Responder.conf ]];
then then
echo "Responder files are not valid. Downloading..." echo "Required Responder files not found. Downloading..."
check_internet check_internet
rm -rf /etc/turtle/Responder rm -rf /etc/turtle/Responder
git clone git://github.com/SpiderLabs/Responder /etc/turtle/Responder git clone git://github.com/SpiderLabs/Responder /etc/turtle/Responder -q
fi fi
case $responder_mode in case $responder_mode in
@ -112,6 +112,7 @@ function start {
echo "python /etc/turtle/Responder/Responder.py $mode -I $responder_interface" | at now echo "python /etc/turtle/Responder/Responder.py $mode -I $responder_interface" | at now
echo -e "Responder started in mode $responder_mode against interface $responder_interface\nand logs are being saved to /sshfs/Responder" echo -e "Responder started in mode $responder_mode against interface $responder_interface\nand logs are being saved to /sshfs/Responder"
echo "Logs can be viewed at Configure > log > View log"
else else
echo "SSHFS not running" echo "SSHFS not running"
exit 1 exit 1
@ -150,6 +151,7 @@ function start {
echo "python /etc/turtle/Responder/Responder.py $mode -I $responder_interface" | at now echo "python /etc/turtle/Responder/Responder.py $mode -I $responder_interface" | at now
echo -e "Responder started in mode $responder_mode against interface $responder_interface\nand logs are being saved to /tmp/Responder" echo -e "Responder started in mode $responder_mode against interface $responder_interface\nand logs are being saved to /tmp/Responder"
echo "Logs can be viewed at Configure > log > View log"
;; ;;
*) *)
echo "Responder configuration not valid." echo "Responder configuration not valid."