From: Eric Bollengier Date: Wed, 4 Aug 2021 07:43:08 +0000 (+0200) Subject: Fix 7891 About OpenBSD chio-changer script fix X-Git-Tag: Release-11.3.2~421 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1526d3bfa90bf8e981e87a45b71c7088bbdddac9;p=thirdparty%2Fbacula.git Fix 7891 About OpenBSD chio-changer script fix --- diff --git a/bacula/examples/autochangers/chio-changer-openbsd b/bacula/examples/autochangers/chio-changer-openbsd index 050095a67..ddccde3a3 100755 --- a/bacula/examples/autochangers/chio-changer-openbsd +++ b/bacula/examples/autochangers/chio-changer-openbsd @@ -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.*.*/\2:\1/p' | \ awk -F: '{ print $1 + 1 ":" $2 }' exit $? ;;