diff scripts/setup_ssh.sh @ 516:7eb66c7898cb prerelease

Fixed setup_ssh (got screwed by bela_common)
author Giulio Moro <giuliomoro@yahoo.it>
date Wed, 22 Jun 2016 13:34:23 +0100
parents d9a4fc5357e7
children
line wrap: on
line diff
--- a/scripts/setup_ssh.sh	Wed Jun 22 13:22:31 2016 +0100
+++ b/scripts/setup_ssh.sh	Wed Jun 22 13:34:23 2016 +0100
@@ -3,6 +3,7 @@
 [ -z $SCRIPTDIR ] && SCRIPTDIR="./" || SCRIPTDIR=$SCRIPTDIR/ 
 . $SCRIPTDIR.bela_common || { echo "You must be in Bela/scripts to run these scripts" | exit 1; }  
 
+[ -z $BBB_HOST ] && BBB_HOST=bbb
 CONFIG_FILENAME=$HOME/.ssh/config
 mkdir -p $HOME/.ssh # create the ssh folder if it does not exist
 printf "\nHost $BBB_HOST\nHostname $BBB_HOSTNAME\nUser $BBB_USER\nStrictHostKeyChecking=no\n\n" >> $HOME/.ssh/config