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 <behlendorf1@llnl.gov>
This commit is contained in:
Gunnar Beutner 2011-07-03 02:38:50 +02:00 committed by Brian Behlendorf
parent 0f4524cca4
commit c8082367cf
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ case $1 in
while IFS= read -r -d $'\n' dev; do while IFS= read -r -d $'\n' dev; do
mdev=$(echo "$dev" | awk '{ print $1; }') mdev=$(echo "$dev" | awk '{ print $1; }')
echo -n "mounting $mdev..." echo -n "mounting $mdev..."
if `zfs mount $mdev`; then if zfs mount $mdev; then
echo -e "done"; echo -e "done";
else else
echo -e "failed"; echo -e "failed";
@ -52,7 +52,7 @@ case $1 in
while IFS= read -r -d $'\n' dev; do while IFS= read -r -d $'\n' dev; do
mdev=$(echo "$dev" | awk '{ print $1 }'); mdev=$(echo "$dev" | awk '{ print $1 }');
echo -n "umounting $mdev..."; echo -n "umounting $mdev...";
if `zfs umount $mdev`; then if zfs umount $mdev; then
echo -e "done"; echo -e "done";
else else
echo -e "failed"; echo -e "failed";