This commit is contained in:
Bob Mottram 2015-08-22 13:01:53 +01:00
parent fbe713a383
commit 0a988150ac
1 changed files with 10 additions and 2 deletions

View File

@ -42,7 +42,6 @@ if [ ! -f /tmp/meshtype ]; then
if [ ! "$?" = "0" ]; then if [ ! "$?" = "0" ]; then
exit 2 exit 2
fi fi
clear
fi fi
avahi-browse -at | awk -F ' ' '{print $4}' > $PEERS_FILE avahi-browse -at | awk -F ' ' '{print $4}' > $PEERS_FILE
@ -62,7 +61,16 @@ if [ ${ctr} -lt "2" ]; then
exit 0 exit 0
fi fi
echo 'Choose a peer to connect to:' clear
echo ''
echo ".---. . . "
echo "| | | "
echo "|--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-. "
echo "| | (.-' (.-' ( | ( )| | | | )( )| | (.-' "
echo "' ' --' --' -' - -' ' ' -' -' -' ' - --'"
echo ' M E S H N E T W O R K'
echo ''
echo 'Please choose a peer to connect to:'
idx=1 idx=1
while IFS='' read -r line || [[ -n "$line" ]]; do while IFS='' read -r line || [[ -n "$line" ]]; do
echo " $idx. $line" echo " $idx. $line"