zfs/scripts/check.sh

18 lines
180 B
Bash
Raw Normal View History

2008-12-05 17:46:11 +00:00
#!/bin/bash
prog=check.sh
die() {
echo "${prog}: $1" >&2
exit 1
}
if [ $(id -u) != 0 ]; then
die "Must run as root"
fi
2009-01-09 00:19:38 +00:00
./zfs.sh -v || die ""
./zfs.sh -vu || die ""
2008-12-05 17:46:11 +00:00
exit 0