From 324a0655bf53288c36748742c05da7cebf4c5757 Mon Sep 17 00:00:00 2001
From: Lukas Bulwahn <lukas.bulwahn@bmw-carit.de>
Date: Thu, 20 Dec 2012 11:25:58 +0100
Subject: [PATCH] telling more onabout he install.l script

---
 install.sh | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/install.sh b/install.sh
index 075e8a4..9d55972 100644
--- a/install.sh
+++ b/install.sh
@@ -1,8 +1,18 @@
+## Installation script that should run in the virtual machine
+# copy it into the virtual machine with:
+# scp <user>@192.168.7.1:/<location of install.sh> .
+# and run it:
+# sh ./install.sh
+#
+# This script does the following steps:
 # create ssh login without password
+USERNAME = lukas
+REPOS_PATH = /home/lukas/ros_server/
+HOST_IP = 192.168.7.1
 ssh-keygen -t rsa
-cat .ssh/id_rsa.pub | ssh lukas@192.168.7.1 'cat >> .ssh/authorized_keys'
+cat .ssh/id_rsa.pub | ssh $USERNAME@$HOST_IP 'cat >> .ssh/authorized_keys'
 # copy prepared rosinstall file
-scp lukas@192.168.7.1:/home/lukas/ros_server/fuerte-ros-base.rosinstall .
+scp $USERNAME@$HOST_IP:$REPOS_PATH/fuerte-ros-base.rosinstall .
 # run rosinstall
 mkdir ~/ros
 rosinstall --catkin ~/ros fuerte-ros-base.rosinstall
-- 
GitLab