#!/bin/sh
+
export rundir=/tmp/restore-$(date +%Y%m%d%H%M%S)
+
if ! mkdir $rundir; then
echo >&2 "Cannot create temp dir"
exit 1
fi
unset CDPATH
-export mountdir=$(cd $(dirname $0) && pwd)
+if [ -z "$3" ]; then
+ export mountdir=$(cd $(dirname $0) && pwd -P)
+fi
SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0`