X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=etc%2Finit.d%2Fzfs.gentoo.in;h=df883cfa4d903b8a38e8100be820879b32d33822;hb=b5a28807cdec3c05aa69cbe4689cd914dc94783a;hp=767aba8f96a27d346806f63627229bdbd0b9be2d;hpb=5faa9c0367e8d6b1ee1c45f1ebeffd3e53ef35e8;p=zfs.git diff --git a/etc/init.d/zfs.gentoo.in b/etc/init.d/zfs.gentoo.in index 767aba8..df883cf 100644 --- a/etc/init.d/zfs.gentoo.in +++ b/etc/init.d/zfs.gentoo.in @@ -1,6 +1,6 @@ #!/sbin/runscript # Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 +# Released under the 2-clause BSD license. # $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/files/zfs,v 0.9 2011/04/30 10:13:43 devsk Exp $ depend() @@ -19,7 +19,7 @@ ZFS_MODULE=zfs checksystem() { if [ ! -c /dev/zfs ]; then einfo "Checking if ZFS modules present" - if [ "x$(modprobe -l $ZFS_MODULE | grep $ZFS_MODULE)" == "x" ]; then + if ! modinfo zfs > /dev/null 2>&1 ; then eerror "$ZFS_MODULE not found. Is the ZFS package installed?" return 1 fi