Author: hummen Date: Mon Oct 12 16:42:45 2009 New Revision: 1096 Log: minor enhancement to trigger script Modified: trunk/tools/autoupdater.sh trunk/tools/trigger-hipupdate.sh Modified: trunk/tools/autoupdater.sh ============================================================================== --- trunk/tools/autoupdater.sh Mon Oct 12 16:33:46 2009 (r1095) +++ trunk/tools/autoupdater.sh Mon Oct 12 16:42:45 2009 (r1096) @@ -20,11 +20,10 @@ HIPL_FILES="hipd/hipd tools/hipconf" #TODO add required conf-files PISA_FILES="pisacd/pisacd pisasd/pisasd pisabeacon/pisabeacon tools/msleep" -PISA_FILES=$PISA_FILES" tools/trigger-hipupdate.sh tools/trigger-demo-update.sh" PISA_FILES=$PISA_FILES" tools/autoupdater.sh" # These files might need modifications for your scenario #PISA_FILES=$PISA_FILES"tools/switch-ip files/etc/pisa/pisacd.conf" -CUSTOM_FILES="switch-ip pisacd.conf" +CUSTOM_FILES="trigger-hipupdate.sh trigger-demo-update.sh switch-ip pisacd.conf" #### DON'T CHANGE BELOW #### Modified: trunk/tools/trigger-hipupdate.sh ============================================================================== --- trunk/tools/trigger-hipupdate.sh Mon Oct 12 16:33:46 2009 (r1095) +++ trunk/tools/trigger-hipupdate.sh Mon Oct 12 16:42:45 2009 (r1096) @@ -1,5 +1,9 @@ #! /bin/sh +EXECUTE_PATH="./" +IFACE=wlan0 +INTERVAL=700 + # outputs the geo-id, if used in combination with pisabeacon if [ $# -eq 1 ] then @@ -7,8 +11,7 @@ fi # issue manual hip update -./hipconf manual-update wlan0 - -./usleep -i 700 -./hipconf manual-update wlan0 +$EXECUTE_PATH"hipconf manual-update "$IFACE +$EXECUTE_PATH"usleep -i "$INTERVAL +$EXECUTE_PATH"hipconf manual-update "$IFACE