[pisa-src] r1150 - trunk/tools/trigger-demo-update.sh

  • From: René Hummen <rene.hummen@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 14 Oct 2009 16:45:16 +0200

Author: hummen
Date: Wed Oct 14 16:45:15 2009
New Revision: 1150

Log:
tweaked timers and fixed init of hipconf variable

Modified:
   trunk/tools/trigger-demo-update.sh

Modified: trunk/tools/trigger-demo-update.sh
==============================================================================
--- trunk/tools/trigger-demo-update.sh  Wed Oct 14 16:41:41 2009        (r1149)
+++ trunk/tools/trigger-demo-update.sh  Wed Oct 14 16:45:15 2009        (r1150)
@@ -3,9 +3,9 @@
 # This script was written for the demo in Oct/Nov 2009
 # It is supposed to be used in combination with pisabeacon
 
-HIPCONF=/home/mobac/hipconf
-GEO_URL=http://mobile-access-demo:8080/setPos/
-WIFI_IF=eth2
+HIPCONF=$HOME"/pisa_testbed/hipconf"
+GEO_URL="http://mobile-access-demo:8080/setPos/";
+WIFI_IF="wlan0"
 
 # check for curl
 if which curl >/dev/null; then
@@ -16,10 +16,10 @@
 fi
 
 
-echo "Fast switches are not supported. Wait at least 10 s before switching 
back"
+#echo "Fast switches are not supported. Wait at least 10 s before switching 
back"
 
 update_geo_id (){
-curl --fail --connect-timeout 20  $GEO_URL$1 > /dev/null  2>&1  &
+curl --fail --connect-timeout 3  $GEO_URL$1 > /dev/null  2>&1  &
 }
 
 update_hip ()
@@ -34,7 +34,7 @@
 
 sleep 1
 update_hip
-sleep 5
+sleep 1
 update_geo_id $1
 
 echo Done

Other related posts:

  • » [pisa-src] r1150 - trunk/tools/trigger-demo-update.sh - René Hummen