Soft to hard tabs
[zfs.git] / etc / init.d / zfs.lunar
index a6ec5c4..bdc461a 100644 (file)
@@ -35,13 +35,21 @@ 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";
       fi
     done < <(zfs list -H);
 
+    # export the filesystems
+    echo -n "exporting ZFS filesystems..."
+    if zfs share -a; then
+      echo -e "done";
+    else
+      echo -e "failed";
+    fi
+
 
   ;;
 
@@ -52,7 +60,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";