git://git.camperquake.de
/
zfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04c2247
)
Fix zfs.gentoo init script logic
author
Alexey Shvetsov
<alexxy@gentoo.org>
Tue, 10 May 2011 20:22:35 +0000
(
00:22
+0400)
committer
Brian Behlendorf
<behlendorf1@llnl.gov>
Thu, 12 May 2011 21:45:57 +0000
(14:45 -0700)
* Fix zfs.ko module check
* Check 'zfs umount -a' return value
etc/init.d/zfs.gentoo
patch
|
blob
|
history
diff --git
a/etc/init.d/zfs.gentoo
b/etc/init.d/zfs.gentoo
index
5c329ce
..
1d8ece2
100644
(file)
--- a/
etc/init.d/zfs.gentoo
+++ b/
etc/init.d/zfs.gentoo
@@
-21,7
+21,7
@@
checksystem() {
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
@@
-94,6
+94,7
@@
stop()
{
ebegin "Unmounting ZFS filesystems"
$ZFS umount -a
+ rv=$?
if [ $rv -ne 0 ]; then
eerror "Failed to umount ZFS filesystems."
fi