xref: /freebsd/tests/sys/geom/class/uzip/conf.sh (revision 49b49cda41feabe3439f7318e8bf40e3896c7bf4)
1#!/bin/sh
2# $FreeBSD$
3
4class="uzip"
5base=`basename $0`
6
7uzip_test_cleanup()
8{
9	if [ -n "$mntpoint" ]; then
10		umount $mntpoint
11		rmdir $mntpoint
12	fi
13	geom_test_cleanup
14}
15trap uzip_test_cleanup ABRT EXIT INT TERM
16
17. `dirname $0`/../geom_subr.sh
18
19# NOTE: make sure $TMPDIR has been set by geom_subr.sh if unset [by kyua, etc]
20mntpoint=$(mktemp -d tmp.XXXXXX) || exit
21