]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/examples/autochangers/solaris-mtx-changer
Tweak TRU64 xattr code.
[bacula/bacula] / bacula / examples / autochangers / solaris-mtx-changer
index fd86992a44245534d459c117d76c2f12ca0fa56d..6f6859585914813f54577b068d2b9d69cc77324d 100755 (executable)
@@ -8,11 +8,11 @@
 #
 #  If you set in your Device resource
 #
-#  Changer Command = "path-to-this-script/mtx-changer" %c %o %S %a %d
+#  Changer Command = "path-to-this-script/mtx-changer  %c %o %S %a %d"
 #    you will have the following input to this script:
 #
 #  mtx-changer "changer-device" "command" "slot" "archive-device" "drive-index"
-#                 $1              $2       $3        $4               $5
+#                  $1              $2       $3        $4               $5
 #
 #  for example:
 #
@@ -92,10 +92,10 @@ case $cmd in
      ;;
    *)
      if test $# -lt 3; then
-       echo "usage: mtx-changer ctl-device command slot archive-device drive"
-       echo "  Insufficient number of arguments arguments given."
-       echo "  Mimimum usage is first three arguments ..."
-       exit 1
+        echo "usage: mtx-changer ctl-device command slot archive-device drive"
+        echo "  Insufficient number of arguments arguments given."
+        echo "  Mimimum usage is first three arguments ..."
+        exit 1
      fi
      ;;
 esac
@@ -109,9 +109,9 @@ case $cmd in
       #mt -f $device offline
       mt -f $device rewoffl
       if test x$slot = x; then
-        ${MTX} -f $ctl unload
+         ${MTX} -f $ctl unload
       else
-        ${MTX} -f $ctl unload $slot $drive
+         ${MTX} -f $ctl unload $slot $drive
       fi
       ;;