]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix 7891 About OpenBSD chio-changer script fix
authorEric Bollengier <eric@baculasystems.com>
Wed, 4 Aug 2021 07:43:08 +0000 (09:43 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
bacula/examples/autochangers/chio-changer-openbsd

index 050095a679aea6c93b1c290f8a2ef19f2cde898c..ddccde3a30af4f1f19772019565506cdf6ebca3b 100755 (executable)
@@ -90,8 +90,8 @@ case ${cmd} in
                exit ${rtn}
                ;;
        list)
-               ${CHIO} -f ${ctl} status -v slot | \
-                       sed -ne 's/^slot *\([0-9]*:\).*FULL.*voltag.*<\(.*\):.*/\1\2/p' | \
+               ${CHIO} -f ${ctl} status -vS | \
+                       sed -ne 's/.*FULL.*voltag.*<\(.*\):.*source.*<slot \([0-9]*\)>.*/\2:\1/p' | \
                        awk -F: '{ print $1 + 1 ":" $2 }'
                exit $?
                ;;