[pisa-src] Re: r1175 - in trunk/tools: auto-handover.sh autoupdater.sh create-screenrc.sh pisa_scripts.conf trigger-demo-update.sh

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2009 19:13:47 +0200

On Thu, Oct 15, 2009 at 04:38:03PM +0200, René Hummen wrote:
> --- trunk/tools/trigger-demo-update.sh        Thu Oct 15 16:22:16 2009        
> (r1174)
> +++ trunk/tools/trigger-demo-update.sh        Thu Oct 15 16:38:03 2009        
> (r1175)
> @@ -1,11 +1,16 @@
> -#!/bin/sh
> +#!/bin/bash
>  
>  # This script was written for the demo in Oct/Nov 2009
>  # It is supposed to be used in combination with pisabeacon
>  
> -HIPCONF=$HOME"/pisa_testbed/hipconf"
> -GEO_URL="http://mobile-access-demo:8080/setPos/";
> -WIFI_IF="wlan0"
> +# read config file
> +if [ ! -e "$PWD/pisa_scripts.conf" ]
> +then
> +        echo "ERROR: "$PWD"/pisa_scripts.conf not found!"
> +        exit 1
> +fi
> +
> +source $PWD"/pisa_scripts.conf"
>  
>  # check for curl
>  if which curl >/dev/null; then
> @@ -24,7 +29,7 @@
>  
>  update_hip ()
>  {
> -$HIPCONF manual-update $WIFI_IF
> +$HIPCONF_CMD manual-update $WIFI_IF

HIPCONF_CMD is never set...

Has this ever worked?

Diego

Other related posts: