#!/bin/sh
echo "running special"
cd /home/root
echo "changed to home root"

# Execute a shell command
# $1 - command
run_cmd(){
	echo $1
	eval $1
}

run_cmd "ls -lR"
run_cmd "cp /etc/profile /media/cf/data"

run_cmd "/home/root/scripts/gps-on"
run_cmd "sleep 15"
run_cmd "date 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/libgum/gum-time 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/probe/gwgps date 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/probe/gwgps date 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/scripts/gps-off"

run_cmd "scp -q -i /home/root/.ssh/id_rsa.db /tmp/output glacsweb@env.ecs.soton.ac.uk:~/www/iceland/incoming/"
echo "sourcing functions.sh"
source functions.sh
echo "sourced functions.sh"
