* Fix zfs.ko module check
* Check 'zfs umount -a' return value
return 0
else
einfo "Checking if ZFS modules present"
return 0
else
einfo "Checking if ZFS modules present"
- if [ -e $(modprobe -l $ZFS_MODULE | grep -q $ZFS_MODULE) ]; then
+ if [ "x$(modprobe -l $ZFS_MODULE | grep $ZFS_MODULE)" == "x" ]; then
eerror "$ZFS_MODULE not found. Is the ZFS package installed?"
return 1
fi
eerror "$ZFS_MODULE not found. Is the ZFS package installed?"
return 1
fi
{
ebegin "Unmounting ZFS filesystems"
$ZFS umount -a
{
ebegin "Unmounting ZFS filesystems"
$ZFS umount -a
if [ $rv -ne 0 ]; then
eerror "Failed to umount ZFS filesystems."
fi
if [ $rv -ne 0 ]; then
eerror "Failed to umount ZFS filesystems."
fi