mirror_zfs/scripts/check.sh
2008-11-20 12:01:55 -08:00

18 lines
184 B
Bash
Executable File

#!/bin/bash
prog=check.sh
die() {
echo "${prog}: $1" >&2
exit 1
}
if [ $(id -u) != 0 ]; then
die "Must run as root"
fi
./load-zfs.sh || die ""
./unload-zfs.sh || die ""
exit 0