+# run a full update by default, use Quick for a fast update
+: ${irspy_test=Main}
+
+mkdir -p $logdir || exit2
+
+if [ -f $lockfile ]; then
+ pid=`cat $lockfile`
+ if kill -0 $pid 2>/dev/null; then
+ echo "This script is already running with pid: $pid"
+ exit 1
+ fi
+fi
+echo $$ > $lockfile || exit 2
+
+weekday=`date '+%w'`