From c8082367cfe9954f0e932fb1513b518d8b84022d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 3 Jul 2011 02:38:50 +0200 Subject: [PATCH] Removed erroneous backticks in the zfs.lunar init script. The backticks would cause the output of the zfs commands to be evaluated as input for the if construct rather than their exit status. Signed-off-by: Brian Behlendorf --- etc/init.d/zfs.lunar | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/init.d/zfs.lunar b/etc/init.d/zfs.lunar index a6ec5c4ddc..c77b2b7808 100644 --- a/etc/init.d/zfs.lunar +++ b/etc/init.d/zfs.lunar @@ -35,7 +35,7 @@ case $1 in while IFS= read -r -d $'\n' dev; do mdev=$(echo "$dev" | awk '{ print $1; }') echo -n "mounting $mdev..." - if `zfs mount $mdev`; then + if zfs mount $mdev; then echo -e "done"; else echo -e "failed"; @@ -52,7 +52,7 @@ case $1 in while IFS= read -r -d $'\n' dev; do mdev=$(echo "$dev" | awk '{ print $1 }'); echo -n "umounting $mdev..."; - if `zfs umount $mdev`; then + if zfs umount $mdev; then echo -e "done"; else echo -e "failed";