From 273695edf8693e6f80eba30432b92f02a43b57f1 Mon Sep 17 00:00:00 2001
From: bucyril <bucyril@ethz.ch>
Date: Tue, 6 Jun 2017 10:09:50 +0200
Subject: [PATCH] small correction on install script

---
 pps install/pps_install.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/pps install/pps_install.sh b/pps install/pps_install.sh
index 889db76a..a2732b74 100755
--- a/pps install/pps_install.sh	
+++ b/pps install/pps_install.sh	
@@ -33,6 +33,10 @@ source /opt/ros/kinetic/setup.bash
 sudo sh -c "echo '10.42.0.32	teacher' >> /etc/hosts"
 sudo sh -c "echo $1 >> /etc/StudentID"
 
+#copy rules before cd
+sudo cp ./99-crazyflie.rules /etc/udev/rules.d
+sudo cp ./99-crazyradio.rules /etc/udev/rules.d
+
 #build workspace
 cd ~/pps_ws
 catkin_make -j4
@@ -41,6 +45,3 @@ echo "source ~/pps_ws/devel/setup.bash" >> ~/.bashrc
 source ~/pps_ws/devel/setup.bash
 echo "source ~/pps_ws/src/d_fall_pps/launch/Config.sh" >> ~/.bashrc
 source ~/pps_ws/src/d_fall_pps/launch/Config.sh
-
-sudo mv ./99-crazyflie.rules /etc/udev/rules.d
-sudo mv ./99-crazyradio.rules /etc/udev/rules.d
-- 
GitLab