#!/bin/sh P=/tmp/ports.tar.gz mp0=/mnt/tmp/0 D0=/dev/mirror/gm0 D0=/dev/ar0 D0=/dev/ad4 if [ -n "$1" -a -n "$2" ]; then Te=$1 Tr=$2 else exit 2 Te=`mktemp -t timetmp` || exit 1 Tr=`mktemp -t timetmp` || exit 1 fi unset LANG set -e newfs ${D0} >/dev/null & wait mount ${D0} ${mp0} time -p -o $Te tar -C ${mp0} -xf $P & wait sync ; sync ; sync ; sync ; sync umount ${mp0} mount ${D0} ${mp0} time -p -o $Tr rm -rf ${mp0}/ports & wait sync ; sync ; sync ; sync ; sync umount ${mp0} & wait